diagSignInfoTexthl: 'Pmenu',
diagSignHintText: 'H>',
diagSignHintTexthl: 'Question',
+ # ShowReferences in a quickfix list instead of a location list`
+ useQuickfixForLocations: false
}
# set the LSP plugin options from the user provided option values
endfor
var save_winid = win_getid()
- setloclist(0, [], ' ', {title: title, items: qflist})
- var mods: string = ''
- exe $'{mods} lopen'
+
+ if opt.lspOptions.useQuickfixForLocations
+ setqflist([], ' ', {title: title, items: qflist})
+ var mods: string = ''
+ exe $'{mods} copen'
+ else
+ setloclist(0, [], ' ', {title: title, items: qflist})
+ var mods: string = ''
+ exe $'{mods} lopen'
+ endif
+
if !opt.lspOptions.keepFocusInReferences
save_winid->win_gotoid()
endif
right side, by default this is false.
outlineWinSize |Number| option. The size of the symbol Outline
window. By default this is set to 20.
+useQuickfixForLocations |Boolean| option. Show |:LspShowReferences| in a
+ quickfix list instead of a location list.
+ By default this is set to false.
showDiagInPopup |Boolean| option. When using the |:LspDiagCurrent|
command to display the diagnostic message for the
current line, use a popup window to display the
*:LspShowReferences*
:LspShowReferences Creates a new location list with the list of locations
where the symbol under the cursor is referenced and
- opens the location window.
+ opens the location window. If you want to show the
+ references in a quickfix list instead of in a location
+ list set >
+
+ call LspOptionsSet({'useQuickfixForLocations': v:true})
+<
+ Set '
:LspShowServerCapabilities *:LspShowServerCapabilities*
Display the list of language server capabilities for