How to override default implementation of what lines to show in documentation window? #2163
-
This almost works: require("cmp").setup({
formatting = {
format = function(entry, vim_item)
entry.completion_item.documentation = "hello there"
end
}
}) How do I remove the other lines in the documentation-window so I only see "hello there"? |
Beta Was this translation helpful? Give feedback.
Answered by
Sebastian-Nielsen
Apr 12, 2025
Replies: 1 comment
-
Overwriting entry.get_documentation = function(self)
return {"aaaa", "bbbbb"}
end |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Sebastian-Nielsen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overwriting
entry.get_documentation
did the job