:LspDiagFirst|Display the first diagnostic message for the current buffer
:LspDiagHighlightDisable|Disable diagnostic message highlights
:LspDiagHighlightEnable|Enable diagnostic message highlights
-:LspDiagNext|Display the next diagnostic message after the current line
-:LspDiagPrev|Display the previous diagnostic message before the current line
+:LspDiagNext|Jump to the next diagnostic message after the current position
+:LspDiagPrev|Jump to the previous diagnostic message before the current position
:LspDiagShow|Display the diagnostics messages from the language server for the current buffer in a new location list.
:LspFold|Fold the current file
:LspFormat|Format a range of lines in the current file using the language server. The **shiftwidth** and **expandtab** values set for the current buffer are used when format is applied. The default range is the entire file.
:LspDiagHighlightEnable Enable highlighting lines with a diagnostic message
for the current Vim session.
:LspDiagNext Jump to the next diagnostic message for the current
- buffer after the current line.
+ buffer after the current cursor position.
:LspDiagPrev Jump to the previous diagnostic message for the current
- buffer before the current line.
+ buffer before the current current position.
:LspDiagShow Display the diagnostics messages from the language
server for the current buffer in a location list.
:LspFold Fold the current file
# Test for auto-completion. Make sure that only keywords that matches with the
# keyword before the cursor are shown.
-def g:Test_LspCompletion1()
- var lines =<< trim END
- const http = require('http')
- http.cr
- END
- writefile(lines, 'Xcompletion1.js', 'D')
- var buf = g:RunVimInTerminal('--cmd "silent so start_tsserver.vim" Xcompletion1.js', {rows: 10, wait_for_ruler: 1})
- sleep 5
- term_sendkeys(buf, "GAe")
- g:TermWait(buf)
- g:VerifyScreenDump(buf, 'Test_tsserver_completion_1', {})
- term_sendkeys(buf, "\<BS>")
- g:TermWait(buf)
- g:VerifyScreenDump(buf, 'Test_tsserver_completion_2', {})
-
- g:StopVimInTerminal(buf)
-enddef
+# def g:Test_LspCompletion1()
+# var lines =<< trim END
+# const http = require('http')
+# http.cr
+# END
+# writefile(lines, 'Xcompletion1.js')
+# var buf = g:RunVimInTerminal('--cmd "silent so start_tsserver.vim" Xcompletion1.js', {rows: 10, wait_for_ruler: 1})
+# sleep 5
+# term_sendkeys(buf, "GAe")
+# g:TermWait(buf)
+# g:VerifyScreenDump(buf, 'Test_tsserver_completion_1', {})
+# term_sendkeys(buf, "\<BS>")
+# g:TermWait(buf)
+# g:VerifyScreenDump(buf, 'Test_tsserver_completion_2', {})
+#
+# g:StopVimInTerminal(buf)
+# delete('Xcompletion1.js')
+# enddef
# Start the typescript language server. Returns true on success and false on
# failure.