mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 12:15:29 +00:00
chore: disable snippet in cmp
This commit is contained in:
@@ -6,11 +6,11 @@ if (not status) then return end
|
||||
|
||||
cmp.setup({
|
||||
auto_select = false,
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
vim.fn["UltiSnips#Anon"](args.body)
|
||||
end
|
||||
},
|
||||
-- snippet = {
|
||||
-- expand = function(args)
|
||||
-- vim.fn["UltiSnips#Anon"](args.body)
|
||||
-- end
|
||||
-- },
|
||||
mapping = {
|
||||
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||
@@ -29,7 +29,7 @@ cmp.setup({
|
||||
sources = {
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'path' },
|
||||
{ name = 'ultisnips' },
|
||||
-- { name = 'ultisnips' },
|
||||
{ name = 'buffer', keyword_length = 5 },
|
||||
{ name = 'npm', keyword_length = 4 },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user