# Don't print message when a configured language server is missing.
ignoreMissingServer: false,
# Focus on the location list window after LspDiagShow
- keepFocusInDiags: true,
+ keepFocusInDiags: false,
# Focus on the location list window after LspShowReferences
keepFocusInReferences: false,
# If true, apply the LSP server supplied text edits after a completion.
*lsp-opt-keepFocusInDiags*
keepFocusInDiags |Boolean| option. Focus on the location list window
after LspDiagShow.
- By default this is set to true.
+ By default this is set to false.
*lsp-opt-keepFocusInReferences*
keepFocusInReferences |Boolean| option. Focus on the location list window
after LspShowReferences.
assert_equal([3, 14, 'E'], [qfl[0].lnum, qfl[0].col, qfl[0].type])
assert_equal([5, 2, 'W'], [qfl[1].lnum, qfl[1].col, qfl[1].type])
assert_equal([7, 2, 'W'], [qfl[2].lnum, qfl[2].col, qfl[2].type])
- close
+ :lclose
g:LspOptionsSet({showDiagInPopup: false})
normal gg
var output = execute('LspDiagCurrent')->split("\n")
output = execute('LspDiagPrev')->split("\n")
assert_equal('Warn: No more diagnostics found', output[0])
- # Test for maintaining buffer focus
- g:LspOptionsSet({ keepFocusInDiags: false })
+ # Test for moving buffer focus to loclist
+ g:LspOptionsSet({ keepFocusInDiags: true })
:LspDiagShow
- assert_equal('', getwinvar(0, '&buftype'))
+ assert_equal('quickfix', getwinvar(0, '&buftype'))
:lclose
- g:LspOptionsSet({ keepFocusInDiags: true })
+ g:LspOptionsSet({ keepFocusInDiags: false })
# :[count]LspDiagNext
cursor(3, 1)
endif
assert_equal([1, 9, 'E'], [qfl[1].lnum, qfl[1].col, qfl[1].type])
assert_equal([2, 9, 'E'], [qfl[2].lnum, qfl[2].col, qfl[2].type])
- close
+ :lclose
:sleep 100m
cursor(2, 1)