Closed astavonin closed 3 years ago
Yes, sure, bat is installed.
Can you share your Neovim config ? Or at least the parts related to LSP / FZF / the plugin.
I had just:
lua require('lspfuzzy').setup {}
Plug 'ojroques/nvim-lspfuzzy'
This is my full config, but already replaced nvim-lspfuzzy
with fzf_lsp
that's why it's in diff form
Looking at your config, replacing
let g:fzf_preview_window = ['up:50%']
with
let g:fzf_preview_window = ['up:50%:+{2}-/2'] "+{2}-/2 makes the preview centered
would likely solve your issue. But if fzf_lsp
works for you feel free to keep it.
Issue:
Open a file with active LSP and call
references
. FZF window with references will pop up, but when you change the selected reference, the preview window shows the file in its current position (0 line for a closed file or current cursor position for an open file).Expected behavior:
FZF window will scroll to a line with the selected reference.
Environment:
LSP
clangd
andpyls
(the issue is reproducable on both LSPs) Ubuntu 20.04 NeoVim 0.6.0nvim-lspfuzzy
- latestfzf
andfzf.vim
installed, latest version