diff options
| author | moxie <moxie.git@posteo.net> | 2026-01-08 18:10:18 +0200 |
|---|---|---|
| committer | moxie <moxie.git@posteo.net> | 2026-01-08 18:10:18 +0200 |
| commit | 1a2dcd114b97790a410a4342a66f3c9b9e64cd5f (patch) | |
| tree | fae2e83ef6c26810d619a2d3120aa17439b13e54 | |
| parent | edbb85960dc73ace944d82fdfb2afb3434d58905 (diff) | |
nvim: disable lsp completion autotrigger
| -rw-r--r-- | .config/nvim/lua/config/lsp.lua | 2 | ||||
| -rw-r--r-- | .config/nvim/lua/config/options.lua | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/.config/nvim/lua/config/lsp.lua b/.config/nvim/lua/config/lsp.lua index 07d9d4c..3bca1fa 100644 --- a/.config/nvim/lua/config/lsp.lua +++ b/.config/nvim/lua/config/lsp.lua @@ -51,7 +51,7 @@ vim.api.nvim_create_autocmd('LspAttach', { -- Optional: trigger autocompletion on EVERY keypress. May be slow! -- 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 }) + vim.lsp.completion.enable(true, client.id, args.buf, { autotrigger = false }) end -- Auto-format ("lint") on save. -- Usually not needed if server supports "textDocument/willSaveWaitUntil". diff --git a/.config/nvim/lua/config/options.lua b/.config/nvim/lua/config/options.lua index a362fcd..f1ea7e8 100644 --- a/.config/nvim/lua/config/options.lua +++ b/.config/nvim/lua/config/options.lua @@ -89,6 +89,7 @@ opt.omnifunc = "syntaxcomplete#Complete" opt.laststatus = 3 -- 2 opt.completeopt = "menu,menuone,noselect" + -- TODO: convert to lua or get lualine plugin -- vim.cmd [[ -- set statusline= |
