nvim: add mason and lspkind

This commit is contained in:
2023-07-08 15:20:43 +03:00
parent a298ab0798
commit 94c9f88f75
4 changed files with 23 additions and 2 deletions

View File

@ -9,12 +9,14 @@ return {
"hrsh7th/cmp-buffer",
"hrsh7th/cmp-path",
"hrsh7th/cmp-nvim-lsp-signature-help",
"onsails/lspkind.nvim",
},
opts = function()
vim.opt.completeopt = { "menuone", "noselect" }
local cmp = require("cmp")
local neogen = require("neogen")
local lspkind = require("lspkind")
cmp.setup({
snippet = {
@ -62,6 +64,13 @@ return {
{ name = "vsnip" },
{ name = "orgmode" },
},
formatting = {
format = lspkind.cmp_format({
mode = "symbol",
maxwidth = 50,
ellipsis_char = "...",
}),
},
})
end,
}

View File

@ -0,0 +1,7 @@
return {
"williamboman/mason.nvim",
build = ":MasonUpdate",
config = function()
require("mason").setup()
end,
}