Skip to content

Commit

Permalink
use %bwipeout!
Browse files Browse the repository at this point in the history
  • Loading branch information
prabirshrestha committed Dec 24, 2020
1 parent 3a9dc5a commit e78b97d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/integration/rust/document_formatting.vimspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ Describe integration#rust#document_formatting
let s:server_name = 'rust-analyzer'

Before
% delete _
%bwipeout!
if executable('rust-analyzer')
call lsp#enable()
exec 'bufdo! bd!'
call lsp#register_server({
\ 'name': s:server_name,
\ 'cmd': ['rust-analyzer'],
Expand All @@ -16,13 +15,14 @@ Describe integration#rust#document_formatting
endif
End

After
After all
%bwipeout!
if !executable('rust-analyzer')
silent! call lsp#stop_server(s:server_name)
endif
% delete _
End


It should correctly format document when using LspDocumentFormatSync
if !executable('rust-analyzer')
Skip rust-analyzer not available
Expand Down

0 comments on commit e78b97d

Please sign in to comment.