Skip to content

Commit

Permalink
config(nvim): add lspkind
Browse files Browse the repository at this point in the history
  • Loading branch information
haunt98 committed Aug 11, 2024
1 parent e59eb68 commit 0f936b9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions data/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,12 @@ require("lazy").setup({
dependencies = {
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
-- https://github.com/onsails/lspkind.nvim
"onsails/lspkind.nvim",
},
config = function()
local cmp = require("cmp")
local lspkind = require("lspkind")

cmp.setup({
-- Custom
Expand Down Expand Up @@ -254,6 +257,14 @@ require("lazy").setup({
},
},
}),
formatting = {
format = lspkind.cmp_format({
mode = "symbol",
maxwidth = 50,
ellipsis_char = "...",
show_labelDetails = true,
}),
},
})
end,
},
Expand Down

0 comments on commit 0f936b9

Please sign in to comment.