diff options
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/lsp_settings.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/lsp_settings.vim b/plugin/lsp_settings.vim index 344d95e..264aa1f 100644 --- a/plugin/lsp_settings.vim +++ b/plugin/lsp_settings.vim @@ -204,6 +204,10 @@ function! s:vimlsp_load_or_suggest(ft) abort if s:vimlsp_settings_get(l:server.command, 'disabled', 0) continue endif + let l:default = get(g:, 'lsp_settings_' . a:ft, '') + if !empty(l:default) && l:default != l:server.command + continue + endif let l:command = s:vimlsp_settings_get(l:server.command, 'cmd', l:server.command) if type(l:command) == type([]) let l:command = l:command[0] |
