diff options
-rw-r--r-- | plugin/lsp_settings.vim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugin/lsp_settings.vim b/plugin/lsp_settings.vim index 412b6f3..b54ec20 100644 --- a/plugin/lsp_settings.vim +++ b/plugin/lsp_settings.vim @@ -33,10 +33,11 @@ function! s:executable(cmd) abort endfunction function! s:vimlsp_installer() abort - if !has_key(s:settings, &filetype) + let l:ft = split(&filetype, '\.')[0] + if !has_key(s:settings, l:ft) return [] endif - let l:server = s:settings[&filetype] + let l:server = s:settings[l:ft] if empty(l:server) return [] endif |