mods = 'belowright vert :' .. (winwidth(0) * 30) / 100
endif
exe mods .. 'lopen'
- save_winid->win_gotoid()
+ if !opt.lspOptions.keepFocusInReferences
+ save_winid->win_gotoid()
+ endif
lspserver.peekSymbol = false
enddef
autoHighlightDiags: true,
# Show the symbol documentation in the preview window instead of in a popup
hoverInPreview: false,
+ # Focus on the location list window after LspShowReferences
+ keepFocusInReferences: false,
}
# set LSP options from user provided options
autoHighlightDiags Automatically place signs on the lines with a
diagnostic message from the LSP server. By default
this is set to true.
+ keepFocusInReferences Focus on the location list window after LspShowReferences
For example, to disable the automatic placement of signs for the LSP
diagnostic messages, you can add the following line to your .vimrc file: