yegappan / lsp

Language Server Protocol (LSP) plugin for Vim9
MIT License
461 stars 54 forks source link

Some things, like diagSignErrorText, are set inside an InitOnce() function, and their values can not be changed later #411

Open laszbalo opened 10 months ago

laszbalo commented 10 months ago

Tried to change the diagSignErrorText, diagSignWarningText, etc signs inside my vim config, as it was suggested in the help text, however contrary to the help, it seems that the LspOptionsSet() must be called first, before calling LspAddServer(), otherwise the InitOnce() function will just use the default values for the signs.

Consequently, calling

:call LspOptionsSet({'diagSignWarningText': 'W'}) from the command line seems to have no visible effects (it will update the value in memory, but there is no visible change on the screen).