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 = {
|
sources = {
|
||||||
{ name = 'nvim_lsp' },
|
{ name = 'nvim_lsp' },
|
||||||
{ name = 'buffer' },
|
{ name = 'buffer' },
|
||||||
{ name = 'luasnip' },
|
|
||||||
{ name = 'nvim_lua' },
|
{ name = 'nvim_lua' },
|
||||||
{ name = 'path' },
|
{ name = 'path' },
|
||||||
|
{ name = 'luasnip' },
|
||||||
},
|
},
|
||||||
formatting = {
|
formatting = {
|
||||||
format = require('lspkind').cmp_format({
|
format = require('lspkind').cmp_format({
|
||||||
with_text = true,
|
with_text = true,
|
||||||
menu = {
|
menu = {
|
||||||
|
buffer = '[buf]',
|
||||||
nvim_lsp = '[LSP]',
|
nvim_lsp = '[LSP]',
|
||||||
buffer = '[Buf]',
|
nvim_lua = '[VimApi]',
|
||||||
luasnip = '[LSnip]',
|
path = '[path]',
|
||||||
nvim_lua = '[Lua]',
|
luasnip = '[snip]',
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue