feat(autocomplete): reorder nvim-cmp sources

This commit is contained in:
Matt Leong 2021-10-22 15:29:25 -07:00
parent 99cdaaea9a
commit d12357742d

View file

@ -44,18 +44,19 @@ cmp.setup({
sources = {
{ name = 'nvim_lsp' },
{ name = 'buffer' },
{ name = 'luasnip' },
{ name = 'nvim_lua' },
{ name = 'path' },
{ name = 'luasnip' },
},
formatting = {
format = require('lspkind').cmp_format({
with_text = true,
menu = {
buffer = '[buf]',
nvim_lsp = '[LSP]',
buffer = '[Buf]',
luasnip = '[LSnip]',
nvim_lua = '[Lua]',
nvim_lua = '[VimApi]',
path = '[path]',
luasnip = '[snip]',
},
}),
},