diff options
| author | Shatur95 <genaloner@gmail.com> | 2020-06-04 18:54:39 +0300 |
|---|---|---|
| committer | Shatur95 <genaloner@gmail.com> | 2020-06-04 18:54:39 +0300 |
| commit | 09148d5e7dfa1494e6f9961d1ce2ff4472c5704b (patch) | |
| tree | d8338d040f6a21fb726de76b94d1d1aeeff2cf86 /lua | |
| parent | Add clangd switch source header command (diff) | |
| download | nvim-lspconfig-09148d5e7dfa1494e6f9961d1ce2ff4472c5704b.tar nvim-lspconfig-09148d5e7dfa1494e6f9961d1ce2ff4472c5704b.tar.gz nvim-lspconfig-09148d5e7dfa1494e6f9961d1ce2ff4472c5704b.tar.bz2 nvim-lspconfig-09148d5e7dfa1494e6f9961d1ce2ff4472c5704b.tar.lz nvim-lspconfig-09148d5e7dfa1494e6f9961d1ce2ff4472c5704b.tar.xz nvim-lspconfig-09148d5e7dfa1494e6f9961d1ce2ff4472c5704b.tar.zst nvim-lspconfig-09148d5e7dfa1494e6f9961d1ce2ff4472c5704b.zip | |
Add editsNearCursor capability by default
This is the default all C++ IDE's.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim_lsp/clangd.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lua/nvim_lsp/clangd.lua b/lua/nvim_lsp/clangd.lua index 815d3b32..f1802071 100644 --- a/lua/nvim_lsp/clangd.lua +++ b/lua/nvim_lsp/clangd.lua @@ -21,6 +21,13 @@ configs.clangd = { or util.path.join(vim.loop.cwd(), fname) return root_pattern(filename) or util.path.dirname(filename) end; + capabilities = { + textDocument = { + completion = { + editsNearCursor = true + } + } + }, }; commands = { ClangdSwitchSourceHeader = { |
