aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-30 00:09:55 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-30 00:09:55 +0900
commit53588884c94b1a0bab8de0fd83e1f1d85d81a707 (patch)
tree1e281689bc2f15c25e8e12de4dd680fdada79b33
parent08e6ed76dea1b22d90c9e6ecbdb4a912166396e8 (diff)
downloadvim-lsp-settings-53588884c94b1a0bab8de0fd83e1f1d85d81a707.tar.gz
vim-lsp-settings-53588884c94b1a0bab8de0fd83e1f1d85d81a707.tar.bz2
vim-lsp-settings-53588884c94b1a0bab8de0fd83e1f1d85d81a707.zip
Installer for filetype _ should not be suggested
-rw-r--r--plugin/lsp_settings.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/lsp_settings.vim b/plugin/lsp_settings.vim
index 8823350..e5936e0 100644
--- a/plugin/lsp_settings.vim
+++ b/plugin/lsp_settings.vim
@@ -256,9 +256,11 @@ function! s:vim_lsp_load_or_suggest(ft) abort
endif
let l:found = 0
+ let l:disabled = 0
for l:server in s:settings[a:ft]
if s:vim_lsp_settings_get(l:server.command, 'disabled', get(l:server, 'disabled', 0))
+ let l:disabled += 1
continue
endif
let l:default = get(g:, 'lsp_settings_' . a:ft, '')
@@ -298,7 +300,7 @@ function! s:vim_lsp_load_or_suggest(ft) abort
endif
endfor
- if l:found ==# 0
+ if l:disabled == 0 && l:found ==# 0
call s:vim_lsp_settings_suggest(a:ft)
else
doautocmd User lsp_setup