autozimu / LanguageClient-neovim

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

Support server commands configuration in ftplugin files #651

Open RobinMcCorkell opened 6 years ago

RobinMcCorkell commented 6 years ago

ALE supports putting per-language configuration in ftplugin files, which helps keep my global config tidy. LanguageClient should support this too.

Specifically, there should continue to be a global g:LanguageClient_serverCommands, but also a b:LanguageClient_serverCommands that can be specified in an ftplugin file, which is sourced every time a buffer is (re)loaded. This buffer-local config should override any global config for that filetype.

RobinMcCorkell commented 5 years ago

Won't https://github.com/autozimu/LanguageClient-neovim/blob/next/rplugin/python3/deoplete/sources/LanguageClientSource.py#L16 cause some problems when using Deoplete?