aboutsummaryrefslogtreecommitdiff
path: root/test/lsp_settings.vimspec
diff options
context:
space:
mode:
Diffstat (limited to 'test/lsp_settings.vimspec')
-rw-r--r--test/lsp_settings.vimspec12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/lsp_settings.vimspec b/test/lsp_settings.vimspec
index 529187e..4af6de6 100644
--- a/test/lsp_settings.vimspec
+++ b/test/lsp_settings.vimspec
@@ -83,4 +83,16 @@ Describe lsp_settings
endtry
End
End
+
+ Describe lsp_settings#exec_path
+ It should setup commands and autocmds.
+ call lsp_settings#init()
+ autocmd vim_lsp_suggest_python
+ Assert exists(':LspInstallServer')
+ delcommand LspInstallServer
+ for v in map(filter(split(execute('autocmd'), '\n'), 'v:val=~"^vim_lsp_"'), 'split(v:val, " ")[0]')
+ exe 'autocmd!' v
+ endfor
+ End
+ End
End