diff options
| author | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-11-01 16:16:35 -0400 |
|---|---|---|
| committer | Stefan Weigl-Bosker <stefan@s00.xyz> | 2025-11-01 16:16:35 -0400 |
| commit | badfb1529c0dc0a2a4e1d6aeb87c7942997777b3 (patch) | |
| tree | c161bc501593f5ec7d0d88d4324157141d1a5f0b | |
| parent | a0ab706a3e885cb7ea7166189d99b0319498110c (diff) | |
| download | home-badfb1529c0dc0a2a4e1d6aeb87c7942997777b3.tar.gz | |
nvim/lsp: extend completionProvider.triggerCharacters
| -rw-r--r-- | modules/neovim/nvim/lua/config/lsp/init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/neovim/nvim/lua/config/lsp/init.lua b/modules/neovim/nvim/lua/config/lsp/init.lua index 0bc21fa..81fe053 100644 --- a/modules/neovim/nvim/lua/config/lsp/init.lua +++ b/modules/neovim/nvim/lua/config/lsp/init.lua @@ -71,6 +71,8 @@ vim.api.nvim_create_autocmd("LspAttach", { callback = function(args) end, { desc = "Goto definition (LSP)" }) if client:supports_method(methods.textDocument_completion) then + local chars = {}; for i = 32, 126 do table.insert(chars, string.char(i)) end + client.server_capabilities.completionProvider.triggerCharacters = chars vim.lsp.completion.enable(true, client.id, args.buf, { autotrigger = true }) map('i', "<CR>", function() |