Skip to content

Commit

Permalink
fix(README): style
Browse files Browse the repository at this point in the history
  • Loading branch information
xudyang1 committed Jan 17, 2025
1 parent 5c54ffa commit 07a800e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ loaders and their benefits. The following list serves only as a short overview.
-- load snippets from path/of/your/nvim/config/my-cool-snippets
require("luasnip.loaders.from_vscode").lazy_load({ paths = { "./my-cool-snippets" } })

(Note: It's mandatory to have a 'package.json' file in the snippet directory. For examples, see documentation.)
-- (Note: It's mandatory to have a `package.json` file in the snippet directory. For examples, see documentation.)
```
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).

Expand All @@ -133,7 +133,7 @@ loaders and their benefits. The following list serves only as a short overview.
The SnipMate format is very simple, so adding **custom snippets** only requires a few steps:
- add a directory beside your `init.vim` (or any other place that is in your `runtimepath`) named `snippets`.
- 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)).
``` snipmate
```snipmate
# comment
snippet <trigger> <description>
<snippet-body>
Expand Down

0 comments on commit 07a800e

Please sign in to comment.