aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-28 17:24:21 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2019-12-28 17:24:21 +0900
commit49e3f4d50ad260d4b7d8e0914ae2a75bbbbfda20 (patch)
treea0ef61e1faa3690d2b5e14c5ce2c6d412a8fbd3d /plugin
parent0babb12a71814a74381a835cfc44acebc24141a4 (diff)
downloadvim-lsp-settings-49e3f4d50ad260d4b7d8e0914ae2a75bbbbfda20.tar.gz
vim-lsp-settings-49e3f4d50ad260d4b7d8e0914ae2a75bbbbfda20.tar.bz2
vim-lsp-settings-49e3f4d50ad260d4b7d8e0914ae2a75bbbbfda20.zip
Check first sub-type in filetype
Diffstat (limited to 'plugin')
-rw-r--r--plugin/lsp_settings.vim5
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