diff options
| author | Thomas Schmucker <ts@its1.de> | 2025-11-18 17:49:34 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2025-11-18 17:49:34 +0100 |
| commit | 99f174a953d7a454bea2e44fc1ee8db26a422ee4 (patch) | |
| tree | 8edebd6f145a12306cb541b53ff427fee6cf927e /nvim | |
| parent | 55bbe5ed195425930c4fe4942a33e08356092e0d (diff) | |
| download | dotfiles-99f174a953d7a454bea2e44fc1ee8db26a422ee4.tar.gz dotfiles-99f174a953d7a454bea2e44fc1ee8db26a422ee4.tar.bz2 dotfiles-99f174a953d7a454bea2e44fc1ee8db26a422ee4.zip | |
nerviges Autocomplete wieder ausgeschaltet
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/completion.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nvim/completion.lua b/nvim/completion.lua index 4b7f335..747607e 100644 --- a/nvim/completion.lua +++ b/nvim/completion.lua | |||
| @@ -1,9 +1,9 @@ | |||
| 1 | vim.api.nvim_create_autocmd("LspAttach", { | 1 | vim.api.nvim_create_autocmd("LspAttach", { |
| 2 | callback = function(ev) | 2 | callback = function(ev) |
| 3 | local client = vim.lsp.get_client_by_id(ev.data.client_id) | 3 | local client = vim.lsp.get_client_by_id(ev.data.client_id) |
| 4 | if client and client:supports_method("textDocument/completion") then | 4 | -- if client and client:supports_method("textDocument/completion") then |
| 5 | vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true }) | 5 | -- vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true }) |
| 6 | end | 6 | -- end |
| 7 | 7 | ||
| 8 | if client and not client:supports_method('textDocument/willSaveWaitUntil') and | 8 | if client and not client:supports_method('textDocument/willSaveWaitUntil') and |
| 9 | client:supports_method('textDocument/formatting') then | 9 | client:supports_method('textDocument/formatting') then |
