Skip to content

Commit 7454e11

Browse files
xudyang1L3MON4D3
authored andcommitted
fix(README): fix invalid syntax
1 parent dfbd554 commit 7454e11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,9 @@ loaders and their benefits. The following list serves only as a short overview.
121121
```lua
122122
-- load snippets from path/of/your/nvim/config/my-cool-snippets
123123
require("luasnip.loaders.from_vscode").lazy_load({ paths = { "./my-cool-snippets" } })
124-
125-
(Note: It's mandatory to have a 'package.json' file in the snippet directory. For examples, see documentation.)
126124
```
125+
> NOTE:
126+
> It's mandatory to have a `package.json` file in the snippet directory. For examples, see [friendly-snippets](https://github.com/rafamadriz/friendly-snippets/blob/main/package.json).
127127
For more info on the VS Code loader, check the [examples](https://github.com/L3MON4D3/LuaSnip/blob/b5a72f1fbde545be101fcd10b70bcd51ea4367de/Examples/snippets.lua#L501) or [documentation](https://github.com/L3MON4D3/LuaSnip/blob/master/DOC.md#loaders).
128128

129129
- **SnipMate-like**: Very similar to VS Code packages; install a plugin that provides snippets and call the `load`-function:
@@ -133,7 +133,7 @@ loaders and their benefits. The following list serves only as a short overview.
133133
The SnipMate format is very simple, so adding **custom snippets** only requires a few steps:
134134
- add a directory beside your `init.vim` (or any other place that is in your `runtimepath`) named `snippets`.
135135
- inside that directory, create files named `<filetype>.snippets` and add snippets for the given filetype in it (for inspiration, check [honza/vim-snippets](https://github.com/honza/vim-snippets/tree/master/snippets)).
136-
``` snipmate
136+
```snipmate
137137
# comment
138138
snippet <trigger> <description>
139139
<snippet-body>

0 commit comments

Comments
 (0)