Open 9mm opened 2 months ago
Very weird... the only way i got it to work was to set a blank string... i have no idea why
formatting = {
expandable_indicator = true,
fields = {
"abbr",
"kind",
"menu",
},
format = lspkind.cmp_format({
mode = "symbol_text",
maxwidth = 65,
-- ellipsis_char = "...",
show_labelDetails = false,
before = function (entry, item)
item.menu = ""
return item
end,
})
I think #83 fixes this.
What is your version of neovim and nvim-cmp?
I'm on the neovim 0.10.1
and latest nvim-cmp. This is the default nvim-cmp looks like.
The blank spaces in your picture should be the message provided by nvim_lsp. The workaround for this could be to provide menus for each source.
format = lspkind.cmp_format({
menu = {
path = "[PATH]",
buffer = "[BUF]",
nvim_lsp = "[LSP]",
nvim_lua = "[LUA]",
luasnip = "[SNIP]",
},
}),
Or just disable the menu of nvim_lsp.
format = lspkind.cmp_format({
menu = { nvim_lsp = nil },
}),
Hey, whats up with the width? anything i put for maxsize, whether its
1
,100
, or the function all look like this:if i uncomment your plugin and use plain old cmp it looks like this: