diff --git a/lua/lsp.lua b/lua/lsp.lua index b0def3d..f43f77a 100644 --- a/lua/lsp.lua +++ b/lua/lsp.lua @@ -93,7 +93,15 @@ function M.setup() capabilities = vim.tbl_deep_extend( "force", capabilities, - require("blink.cmp").get_lsp_capabilities({}, false) + require("blink.cmp").get_lsp_capabilities({ + textDocument = { + completion = { + completionItem = { + snippetSupport = false, + }, + }, + }, + }, false) ) vim.lsp.config("*", { capabilities = capabilities, diff --git a/lua/plugins/blink.lua b/lua/plugins/blink.lua index bbaffc9..f30881e 100644 --- a/lua/plugins/blink.lua +++ b/lua/plugins/blink.lua @@ -71,13 +71,17 @@ return { show_documentation = false, }, }, - -- Default list of enabled providers defined so that you can extend it - -- elsewhere in your config, without redefining it, due to `opts_extend` sources = { default = { "lsp", "path", }, + transform_items = function(_, items) + return vim.tbl_filter(function(item) + return item.kind + ~= require("blink.cmp.types").CompletionItemKind.Snippet + end, items) + end, }, keymap = { preset = "none", @@ -89,5 +93,4 @@ return { [""] = { "snippet_backward", "fallback" }, }, }, - opts_extend = { "sources.default" }, }