forked from dineshsalunke/nvim-config
refactor: minor styling changes
This commit is contained in:
parent
6f6d54fe4d
commit
0df7a6bfc8
@ -65,10 +65,16 @@ return {
|
|||||||
mode = "symbol_text",
|
mode = "symbol_text",
|
||||||
maxwidth = 150,
|
maxwidth = 150,
|
||||||
ellipsis_char = "...",
|
ellipsis_char = "...",
|
||||||
|
before = function(entry, vim_item)
|
||||||
|
vim_item.menu = ({
|
||||||
|
nvim_lsp = "[LSP]",
|
||||||
|
buffer = "[Buffer]",
|
||||||
|
})[entry.source.name]
|
||||||
|
return vim_item
|
||||||
|
end,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
completion = {
|
completion = {
|
||||||
keyword_length = 3,
|
|
||||||
completeopt = "menu,menuone,noinsert",
|
completeopt = "menu,menuone,noinsert",
|
||||||
},
|
},
|
||||||
snippet = {
|
snippet = {
|
||||||
@ -86,8 +92,8 @@ return {
|
|||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = "nvim_lsp" },
|
{ name = "nvim_lsp" },
|
||||||
{ name = "nvim_lsp_signature_help" },
|
{ name = "nvim_lsp_signature_help" },
|
||||||
{ name = "luasnip", keyword_length = 3 },
|
{ name = "luasnip" },
|
||||||
{ name = "buffer", keyword_length = 5 },
|
{ name = "buffer" },
|
||||||
{ name = "path" },
|
{ name = "path" },
|
||||||
}),
|
}),
|
||||||
window = {
|
window = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user