diff options
Diffstat (limited to 'test/lsp_settings.vimspec')
-rw-r--r-- | test/lsp_settings.vimspec | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lsp_settings.vimspec b/test/lsp_settings.vimspec index 2485ca1..36db445 100644 --- a/test/lsp_settings.vimspec +++ b/test/lsp_settings.vimspec @@ -95,7 +95,7 @@ Describe lsp_settings for v in filter(split(execute('augroup'), '\s\+'), 'v:val=~"^vim_lsp_"') exe 'augroup ' . v autocmd! - augroup END + augroup END exe 'augroup! ' . v endfor bw! @@ -105,14 +105,16 @@ Describe lsp_settings call lsp_settings#clear() call lsp_settings#init() new + let g:lsp_settings = {'pyls': {'cmd': ['foo', 'bar']}} Throw /E117/ :setfiletype python bw! for v in filter(split(execute('augroup'), '\s\+'), 'v:val=~"^vim_lsp_suggest"') exe 'augroup ' . v autocmd! - augroup END + augroup END exe 'augroup! ' . v endfor + unlet g:lsp_settings End End End |