mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-04 04:35:29 +00:00
chore: uncomment cmp configuration
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,9 +29,9 @@ cmp.setup({
|
|||||||
sources = {
|
sources = {
|
||||||
{ name = 'nvim_lsp' },
|
{ name = 'nvim_lsp' },
|
||||||
{ name = 'path' },
|
{ name = 'path' },
|
||||||
-- { name = 'ultisnips' },
|
{ name = 'buffer', keyword_length = 3 },
|
||||||
{ name = 'buffer', keyword_length = 5 },
|
|
||||||
{ name = 'npm', keyword_length = 4 },
|
{ name = 'npm', keyword_length = 4 },
|
||||||
|
{ name = 'ultisnips' },
|
||||||
},
|
},
|
||||||
formatting = {
|
formatting = {
|
||||||
format = require('lspkind').cmp_format {
|
format = require('lspkind').cmp_format {
|
||||||
|
|||||||
Reference in New Issue
Block a user