diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-02-13 00:33:56 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-02-13 00:33:56 +0900 |
commit | 145cae42dbfcdecd9cd6b9e6de28edf6bfd6e9b8 (patch) | |
tree | 0c6b3403c80f98443e7487d134526f92e2e7ac0e | |
parent | a2e7bad60ba6509c5e37e0035f7829a6d60ea823 (diff) | |
download | vim-lsp-settings-145cae42dbfcdecd9cd6b9e6de28edf6bfd6e9b8.tar.gz vim-lsp-settings-145cae42dbfcdecd9cd6b9e6de28edf6bfd6e9b8.tar.bz2 vim-lsp-settings-145cae42dbfcdecd9cd6b9e6de28edf6bfd6e9b8.zip |
Do not do forcibly suggestion for non-filetype
-rw-r--r-- | autoload/lsp_settings.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/autoload/lsp_settings.vim b/autoload/lsp_settings.vim index 476eda3..1e10a9d 100644 --- a/autoload/lsp_settings.vim +++ b/autoload/lsp_settings.vim @@ -414,7 +414,9 @@ function! s:vim_lsp_load_or_suggest(ft) abort endfor if l:disabled == 0 && l:found ==# 0 - call s:vim_lsp_settings_suggest(a:ft) + if a:ft !=# '_' + call s:vim_lsp_settings_suggest(a:ft) + endif else if exists('#User#lsp_setup') !=# 0 doautocmd User lsp_setup |