aboutsummaryrefslogtreecommitdiff
path: root/autoload/lsp_settings.vim
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2020-02-12 10:05:09 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2020-02-12 10:05:09 +0900
commitce9a222097f52a2548c25e93113833204da0eb77 (patch)
tree096f33b163e16b961e1fab7b5380174d9250859b /autoload/lsp_settings.vim
parent67dd6f4a23c9f85412f12779d44df00545c82f31 (diff)
downloadvim-lsp-settings-ce9a222097f52a2548c25e93113833204da0eb77.tar.gz
vim-lsp-settings-ce9a222097f52a2548c25e93113833204da0eb77.tar.bz2
vim-lsp-settings-ce9a222097f52a2548c25e93113833204da0eb77.zip
Add hack to avoid failing tests
Diffstat (limited to 'autoload/lsp_settings.vim')
-rw-r--r--autoload/lsp_settings.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/autoload/lsp_settings.vim b/autoload/lsp_settings.vim
index 4057260..f012432 100644
--- a/autoload/lsp_settings.vim
+++ b/autoload/lsp_settings.vim
@@ -334,11 +334,14 @@ function! s:vim_lsp_suggest_plugin() abort
endfunction
function! s:vim_lsp_load_or_suggest_delay(ft) abort
+ if get(g:, 'vim_lsp_settings_filetype_no_delays', 0)
+ return s:vim_lsp_load_or_suggest(a:ft)
+ endif
call timer_start(0, {timer -> s:vim_lsp_load_or_suggest(a:ft)})
endfunction
function! s:vim_lsp_load_or_suggest(ft) abort
- if &filetype !=# a:ft || !has_key(s:settings, a:ft)
+ if (a:ft != '_' && &filetype !=# a:ft) || !has_key(s:settings, a:ft)
return
endif