yegappan / lsp

Language Server Protocol (LSP) plugin for Vim9
MIT License
473 stars 57 forks source link

Make LspInlayHints accept "toggle" in addition to "enable"/"disable" #515

Closed rvighne closed 1 week ago

rvighne commented 4 months ago

I don't want to see inlay hints all the time, but it would be useful if I could quickly show and hide the hints using a single key. I can't implement this right now because you have to explicitly say "enable" or "disable" when calling LspInlayHints.

yegappan commented 1 week ago

Added the "toggle" option to the :LspInlayHints command (04b5b04312e641a3644994b332163cc5b668fb36).