hrsh7th / cmp-nvim-lsp-signature-help

cmp-nvim-lsp-signature-help
638 stars 26 forks source link

Weird "Text" at the end #24

Closed lazywei closed 2 years ago

lazywei commented 2 years ago

For some reason I'm getting this "Text" at the end of the signature help. It's showing up for every kind of arguments so I don't think this is something related to the typing.

If I invoke :lua vim.lsp.buf.signature_help() then it's working as expected (i.e., no "Text" at the end).

Is this coming from this plugin or is this coming from my lsp directly (as reference, i'm using gopls for Go)

image

hrsh7th commented 2 years ago

This is nvim-cmp's kind field. You can remove kind field from completion menu. See :help cmp-config.formatting.fields

lazywei commented 2 years ago

Got it. I managed to use use https://github.com/onsails/lspkind.nvim to generate the formatting settings. Thank you!!