lsp-status.nvim icon indicating copy to clipboard operation
lsp-status.nvim copied to clipboard

Default kind_labels to CompletionItemKind

Open wbthomason opened this issue 4 years ago • 2 comments

Per discussion with @Shatur95 in #49

wbthomason avatar Apr 09 '21 05:04 wbthomason

Does anyone need to have kind_labels empty? If not, then we can read CompletionItemKind if kind_labels is not set. Or, alternatively, it could be an additional boolean option.

Shatur avatar Apr 09 '21 06:04 Shatur

You can do this: if the kind_labels field is nil then default to CompletionItemKind otherwise use that and if the user does not want any labels then they can enter an empty table like kind_labels = {}.

Thinking more about it, I won't prefer to use the default. For CompletionItemKind, I have set it up like <icon> <kind>:

Screenshot 2021-05-19 at 21 15 33

And for lsp-status plugin which I'm using in the statusline, I have set it up like <icon>

Screenshot 2021-05-19 at 21 15 58

I think most people would prefer the verbose version for the completion menu and icon only version for the statusline.

dhruvmanila avatar May 19 '21 15:05 dhruvmanila