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