autozimu / LanguageClient-neovim

Language Server Protocol (LSP) support for vim and neovim.
MIT License
3.55k stars 273 forks source link

Use GetVar instead of get in HasCommand #1136

Closed martskins closed 3 years ago

martskins commented 3 years ago

This PR fixes the way we check for server commands. It was previously using g:LanguageClient_serverCommands and not considering that the command could be configured in b:LanguageClient_serverCommands. I changed the implementation to use s:GetVar instead of get(g:, ..) to take this into account.