config: nvim: add LSP support together with mason package manager

This commit is contained in:
Thomas Preisner 2022-10-16 22:38:02 +02:00
parent ab5cceddab
commit c058fa22ea
4 changed files with 71 additions and 0 deletions

View file

@ -10,6 +10,7 @@ cmp.setup({
formatting = {
format = function(entry, vim_item)
vim_item.menu = ({
nvim_lsp = '[LSP]',
buffer = '[Buffer]',
luasnip = '[Snippet]',
})[entry.source.name]