diff options
| author | Aotrix <[email protected]> | 2025-02-24 16:26:54 +0100 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2025-02-24 16:26:54 +0100 |
| commit | 18751830d1d73c87c19019d56ddd8014db5a433b (patch) | |
| tree | f1156ea5137ef36a59ce394936e164651d6bc399 /lua/aotrix/plugins/lsp.lua | |
| parent | 47c9daea251a5295cc1612df91546b758a1b738e (diff) | |
snippets work for C++
Diffstat (limited to 'lua/aotrix/plugins/lsp.lua')
| -rw-r--r-- | lua/aotrix/plugins/lsp.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lua/aotrix/plugins/lsp.lua b/lua/aotrix/plugins/lsp.lua index d24b0d0..0b02ad4 100644 --- a/lua/aotrix/plugins/lsp.lua +++ b/lua/aotrix/plugins/lsp.lua @@ -24,7 +24,12 @@ return { fname) or require("lspconfig.util").find_git_ancestor(fname) end, - capabilities = {offsetEncoding = {"utf-16"}}, + capabilities = { + offsetEncoding = {"utf-16"}, + textDocument = { + completion = {completionItem = {snippetSupport = true}} + } + }, cmd = { "clangd", "--background-index", "--clang-tidy", "--header-insertion=iwyu", "--completion-style=detailed", |
