diff options
| -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 |
