Skip to content

Commit 0aeb9e5

Browse files
authored
Merge pull request #2669 from bhcleek/gotest/lsp
gotest: cycle files for gopls after setting cursor
2 parents cd996e4 + c54c86c commit 0aeb9e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/gotest.vim

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ fun! gotest#write_file(path, contents) abort
3939
call setline('.', substitute(getline('.'), "\x1f", '', ''))
4040
silent noautocmd w!
4141

42+
call go#lsp#DidClose(expand('%:p'))
43+
call go#lsp#DidOpen(expand('%:p'))
44+
4245
break
4346
endif
4447

0 commit comments

Comments
 (0)