Skip to content

g:vista_enable_centering_jump is not respected in fzf.vim #479

@22or

Description

@22or

Describe the bug
Setting vista_enable_centering_jump does not have any effect when using :Vista finder with fzf. Looking into the autoload/vista/finder/fzf.vim file, it is apparent that the setting is not being checked at all.

Environment:

  • PopOS
  • Vim 8+
  • Latest vista.vim
  • vim-lsp

Steps to reproduce given the above info

  1. install fzf.vim
  2. set g:vista_enable_centering_jump to 0 in ~/.vimrc
  3. reload config
  4. open a file and use :Vista jump to jump to a symbol

minimal vimrc (neccessary when this issue is about some Vim LSP client):

call plug#begin()
Plug 'prabirshrestha/vim-lsp'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'liuchengxu/vista.vim'
call plug#end()
let g:vista_default_executive='vim_lsp'	" use vim-lsp as the lsp
let g:vista_enable_centering_jump=0	" bugged; doesn't work for fzf

Expected behavior
After the jump, the symbol is at the top.

Actual behavior
After the jump, the symbol is in the center (like default)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions