Skip to content

Commit

Permalink
docs: fix recipes formatting for disabling snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Dec 21, 2024
1 parent 4d886b7 commit 2325c78
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/configuration/snippets.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,14 @@ capabilities = require('blink.cmp').get_lsp_capabilities({
Some LSPs may ignore the `snippetSupport` field, in which case, you need to set LSP specific options while setting them up. Some examples:

```lua
-- If you're using `opts = { ['rust-analyzer'] = { } }` in your lspconfig configuration,
-- simply put these options in there instead
-- If you're using `opts = { ['rust-analyzer'] = { } }` in your lspconfig configuration, simply put these options in there instead

-- For `rust-analyzer`
lspconfig['rust-analyzer'].setup({
completion = {
capable = {
snippets = 'add_parenthesis'
}
snippets = 'add_parenthesis'
}
}
})

Expand Down

0 comments on commit 2325c78

Please sign in to comment.