feat(autocomplete): reorder nvim-cmp sources
This commit is contained in:
parent
99cdaaea9a
commit
d12357742d
1 changed files with 5 additions and 4 deletions
|
@ -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]',
|
||||
},
|
||||
}),
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue