onsails / lspkind.nvim

vscode-like pictograms for neovim lsp completion items
MIT License
1.47k stars 36 forks source link

Add option to show only text (no symbols) #34 #35

Closed mattrobineau closed 2 years ago

mattrobineau commented 2 years ago

Implements #34

The PR will allow users to specify how the symbol and kind are displayed for annotations.

The added options are:

'text'

text

'text_symbol'

I dont have a icon font installed, so they dont render in screenshot text_symbol example

'symbol_text'

symbol_text

'symbol' (default)

symbol

Configuration changes

Adds mode option to configurations

       format = lspkind.cmp_format({
            mode = 'symbol',
            menu = ({
                buffer = "[buff]",
                nvim_lsp = "[lsp]",
                luasnip = "[snip]",
                path = "[path]"
            })
        })
onsails commented 2 years ago

Fantastic! Could you please add deprecation message via echoerr so that users will timely adopt to mode option?

mattrobineau commented 2 years ago

I've added an echoerr, if this is not what you meant, please give guidance.

onsails commented 2 years ago

Exactly what I meant. Thank you for your contribution!