diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-05-21 23:00:57 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-05-21 23:00:57 -0500 |
| commit | d7471c58485cc90aea53d8a5935e46d347f43b8c (patch) | |
| tree | 1dc6062dae4ed62d7545733710c5141753adcf43 | |
| parent | b289c88c8af8f35faf16ccc4fbb0af7798d2316a (diff) | |
| download | nvim-d7471c58485cc90aea53d8a5935e46d347f43b8c.tar.xz nvim-d7471c58485cc90aea53d8a5935e46d347f43b8c.zip | |
remove native cmp from lsp autocmd
| -rw-r--r-- | lua/tjk/lsp.lua | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lua/tjk/lsp.lua b/lua/tjk/lsp.lua index 396b643..118cda5 100644 --- a/lua/tjk/lsp.lua +++ b/lua/tjk/lsp.lua @@ -14,11 +14,12 @@ vim.lsp.enable({ vim.api.nvim_create_autocmd("LspAttach", { callback = function(args) vim.o.signcolumn = "yes:1" - local client = assert(vim.lsp.get_client_by_id(args.data.client_id)) - if client:supports_method("textDocument/completion") then - vim.o.complete = { "o", ".", "w", "b", "u" } - vim.o.completeopt = { "menu", "menuone", "popup", "noinsert" } - vim.lsp.completion.enable(true, client.id, args.buf) - end + -- TODO native cmp + --local client = assert(vim.lsp.get_client_by_id(args.data.client_id)) + --if client:supports_method("textDocument/completion") then + -- vim.o.complete = { "o", ".", "w", "b", "u" } + -- vim.o.completeopt = { "menu", "menuone", "popup", "noinsert" } + -- vim.lsp.completion.enable(true, client.id, args.buf) + --end end }) |
