mirror of
https://github.com/neovim/nvim-lspconfig
synced 2024-09-16 14:24:07 +02:00
docs: update server_configurations.md
skip-checks: true
This commit is contained in:
parent
37585d207a
commit
f95d371c1a
2 changed files with 24 additions and 0 deletions
|
@ -7429,6 +7429,18 @@ https://github.com/Decodetalkers/neocmakelsp
|
|||
|
||||
CMake LSP Implementation
|
||||
|
||||
Neovim does not currently include built-in snippets. `neocmakelsp` only provides completions when snippet support is enabled. To enable completion, install a snippet plugin and add the following override to your language client capabilities during setup.
|
||||
|
||||
```lua
|
||||
--Enable (broadcasting) snippet capability for completion
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||
|
||||
require'lspconfig'.neocmake.setup {
|
||||
capabilities = capabilities,
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
**Snippet to enable the language server:**
|
||||
|
|
|
@ -7429,6 +7429,18 @@ https://github.com/Decodetalkers/neocmakelsp
|
|||
|
||||
CMake LSP Implementation
|
||||
|
||||
Neovim does not currently include built-in snippets. `neocmakelsp` only provides completions when snippet support is enabled. To enable completion, install a snippet plugin and add the following override to your language client capabilities during setup.
|
||||
|
||||
```lua
|
||||
--Enable (broadcasting) snippet capability for completion
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
||||
|
||||
require'lspconfig'.neocmake.setup {
|
||||
capabilities = capabilities,
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
**Snippet to enable the language server:**
|
||||
|
|
Loading…
Reference in a new issue