Closed printfdebugging closed 4 months ago
Hi, I encountered the same issue with clangd that you did. Here’s a simple temporary solution that worked for me.
formatting = {
...
format = lspkind.cmp_format({
mode = "symbol_text",
maxwidth = 50,
ellipsis_char = "...",
before = function(_, vim_item)
vim_item.menu = ({ nvim_lsp = "" })["clangd"]
return vim_item
end,
}),
},
@mifka01 Thanks, it works like a charm :)
Hi, I am closing it, since the issue has been resolved and it's look like an issue now since nvim-cmp showed what clangd pushed to it, and there exists a way to control what is shown and what is not.
I meant it doesn't look like an issue :)
FAQ
Announcement
Minimal reproducible full config
Description
I want a way to exclude the clangd function signatures, but couldn't find any on the clangd documentation.
Steps to reproduce
Use clangd, and start writing a C++program, it will get long somewhere in between.
Expected behavior
There should be a way to exclude the function prototypes, such that it doesn't get that long. if not then atleast some way to set the maximum length.
Actual behavior
Long clangd function prototypes show up at the end of each entry increasing the length of the popup window.
Additional context
I found
in the FAQ, but don't know if related or not. If so, then some pointers to how I can configure it to the desired look would be nice.