fix(blink): disable snippets
This commit is contained in:
+9
-1
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
["<C-p>"] = { "snippet_backward", "fallback" },
|
||||
},
|
||||
},
|
||||
opts_extend = { "sources.default" },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user