feat: add blink.cmp and disable custom completion pipeline
This commit is contained in:
+2
-6
@@ -4,7 +4,6 @@
|
||||
---@field context lsp.HandlerContext
|
||||
|
||||
local codelens = require("lsp.codelens")
|
||||
local completion = require("lsp.completion")
|
||||
local diagnostic = require("lsp.diagnostic")
|
||||
local log = require("log")
|
||||
|
||||
@@ -43,8 +42,6 @@ local function on_attach(client, buf)
|
||||
client.settings
|
||||
) or client.settings
|
||||
|
||||
completion.on_attach(client, buf)
|
||||
|
||||
vim.api.nvim_clear_autocmds({ group = GROUP, buffer = buf })
|
||||
vim.api.nvim_create_autocmd("LspProgress", {
|
||||
buffer = buf,
|
||||
@@ -91,8 +88,7 @@ function M.setup()
|
||||
"zls",
|
||||
})
|
||||
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
completion.apply_capabilities(capabilities)
|
||||
local capabilities = require("blink.cmp").get_lsp_capabilities({}, true)
|
||||
vim.lsp.config("*", {
|
||||
capabilities = capabilities,
|
||||
})
|
||||
@@ -107,7 +103,7 @@ function M.setup()
|
||||
end,
|
||||
})
|
||||
|
||||
completion.setup()
|
||||
-- require("lsp.completion").setup()
|
||||
codelens.setup()
|
||||
|
||||
vim.lsp.log.set_level(vim.log.levels.WARN)
|
||||
|
||||
Reference in New Issue
Block a user