fix(blink): disable snippets
This commit is contained in:
+9
-1
@@ -93,7 +93,15 @@ function M.setup()
|
|||||||
capabilities = vim.tbl_deep_extend(
|
capabilities = vim.tbl_deep_extend(
|
||||||
"force",
|
"force",
|
||||||
capabilities,
|
capabilities,
|
||||||
require("blink.cmp").get_lsp_capabilities({}, false)
|
require("blink.cmp").get_lsp_capabilities({
|
||||||
|
textDocument = {
|
||||||
|
completion = {
|
||||||
|
completionItem = {
|
||||||
|
snippetSupport = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}, false)
|
||||||
)
|
)
|
||||||
vim.lsp.config("*", {
|
vim.lsp.config("*", {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
|||||||
@@ -71,13 +71,17 @@ return {
|
|||||||
show_documentation = false,
|
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 = {
|
sources = {
|
||||||
default = {
|
default = {
|
||||||
"lsp",
|
"lsp",
|
||||||
"path",
|
"path",
|
||||||
},
|
},
|
||||||
|
transform_items = function(_, items)
|
||||||
|
return vim.tbl_filter(function(item)
|
||||||
|
return item.kind
|
||||||
|
~= require("blink.cmp.types").CompletionItemKind.Snippet
|
||||||
|
end, items)
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
keymap = {
|
keymap = {
|
||||||
preset = "none",
|
preset = "none",
|
||||||
@@ -89,5 +93,4 @@ return {
|
|||||||
["<C-p>"] = { "snippet_backward", "fallback" },
|
["<C-p>"] = { "snippet_backward", "fallback" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
opts_extend = { "sources.default" },
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user