From 53588884c94b1a0bab8de0fd83e1f1d85d81a707 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Thu, 30 Jan 2020 00:09:55 +0900 Subject: Installer for filetype _ should not be suggested --- plugin/lsp_settings.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugin') 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 -- cgit v1.2.3-54-g00ecf