diff options
author | Duc Nghiem-Xuan <git@ducnx.com> | 2020-01-30 02:51:07 +0900 |
---|---|---|
committer | Duc Nghiem-Xuan <git@ducnx.com> | 2020-01-30 02:51:07 +0900 |
commit | 47550db26fee6109d296e2d38a956593904c6e67 (patch) | |
tree | 974de9417ca00ca35805729fc509dfabcc2cf122 | |
parent | f76f655e5733ec766db2d627c6ec01beeade3590 (diff) | |
download | vim-lsp-settings-47550db26fee6109d296e2d38a956593904c6e67.tar.gz vim-lsp-settings-47550db26fee6109d296e2d38a956593904c6e67.tar.bz2 vim-lsp-settings-47550db26fee6109d296e2d38a956593904c6e67.zip |
fix language server for _ ft is not started
The servers for _ ft were registered too late, because
`s:vim_lsp_load_or_suggest('_')` was called in after `VimEnter`, a.k.a
after vim-lsp started.
-rw-r--r-- | plugin/lsp_settings.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/lsp_settings.vim b/plugin/lsp_settings.vim index e5936e0..bf37a82 100644 --- a/plugin/lsp_settings.vim +++ b/plugin/lsp_settings.vim @@ -212,7 +212,7 @@ function! s:vim_lsp_settings() abort augroup vim_lsp_suggest autocmd! autocmd BufNewFile,BufRead * call s:vim_lsp_suggest_plugin() - autocmd VimEnter * call s:vim_lsp_load_or_suggest('_') + call s:vim_lsp_load_or_suggest('_') augroup END command! -nargs=? -complete=customlist,lsp_settings#complete_uninstall LspUninstallServer call s:vim_lsp_uninstall_server(<q-args>) endfunction |