diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-02-12 10:44:47 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2020-02-12 10:44:47 +0900 |
commit | 88e07ea55e44854892efea535d580e166a215fd4 (patch) | |
tree | 99c9270d5af1f5c1bb3440791c6fb121073a7e68 /autoload | |
parent | 09268932e5f49eec2cf6432f874c3d275f8b863a (diff) | |
download | vim-lsp-settings-88e07ea55e44854892efea535d580e166a215fd4.tar.gz vim-lsp-settings-88e07ea55e44854892efea535d580e166a215fd4.tar.bz2 vim-lsp-settings-88e07ea55e44854892efea535d580e166a215fd4.zip |
Revert delays
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/lsp_settings.vim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/autoload/lsp_settings.vim b/autoload/lsp_settings.vim index 7d06c4c..476eda3 100644 --- a/autoload/lsp_settings.vim +++ b/autoload/lsp_settings.vim @@ -335,10 +335,11 @@ 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), execute('doautocmd BufReadPost')]}) + call s:vim_lsp_load_or_suggest(a:ft) + "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), execute('doautocmd BufReadPost')]}) endfunction function! s:vim_lsp_load_or_suggest(ft) abort |