Disable snippetSupport for rustaceanvim until nvim-cmp gets fixed
parent
8152c1bdbc
commit
6cc2bd74a9
|
@ -21,14 +21,14 @@ cmp.setup({
|
|||
["<C-y>"] = cmp.mapping.confirm({ select = true }),
|
||||
["<C-n>"] = function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.select_next_item({ behavior = cmp.SelectBehavior.Select })
|
||||
cmp.select_next_item()
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
end,
|
||||
["<C-p>"] = function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.select_prev_item({ behavior = cmp.SelectBehavior.Select })
|
||||
cmp.select_prev_item()
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
|
|
|
@ -88,6 +88,16 @@ require("flutter-tools").setup({
|
|||
-- Rust tools
|
||||
vim.g.rustaceanvim = {
|
||||
server = vim.tbl_extend("force", common_config, {
|
||||
capabilities = vim.tbl_extend("force", common_config.capabilities, {
|
||||
-- TODO wait for nvim-cmp fix
|
||||
textDocument = {
|
||||
completion = {
|
||||
completionItem = {
|
||||
snippetSupport = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
}),
|
||||
on_attach = function(client, bufnr)
|
||||
common_config.on_attach(client, bufnr)
|
||||
end,
|
||||
|
|
Loading…
Reference in New Issue