minimal vimrc (neccessary when this issue is about some Vim LSP client):
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
" vim-plug
call plug#begin()
Plug 'neoclide/coc.nvim', { 'branch': 'release' }
Plug 'liuchengxu/vista.vim'
call plug#end()
" vista.vim
autocmd VimEnter * call vista#RunForNearestMethodOrFunction()
let g:vista_default_executive = 'coc'
" or
" let g:vista_default_executive = 'ctags'
Open a file (tested on some random Java and Rust).
When using coc.nvim, I still have to at least :Vista once to make b:vista_nearest_method_or_function available (although :echo b:coc_current_function works already); when using ctags, I have to move cursor at least once otherwise right after NeoVim starts :echo b:vista_nearest_method_or_function says it doesn't exist.
Expected behavior
With the autocmd, b:vista_nearest_method_or_function is filled automatically without needing any intervention.
Actual behavior
Need to :Vista or move cursor otherwise b:vista_nearest_method_or_function doesn't exist.
Describe the bug
b:vista_nearest_method_or_function
may not exist even with the autocmd mentioned in readme.Environment:
1:r20210106+g08b1c490-1
)Vista info
Steps to reproduce given the above info
minimal vimrc (neccessary when this issue is about some Vim LSP client):
Open a file (tested on some random Java and Rust).
When using coc.nvim, I still have to at least
:Vista
once to makeb:vista_nearest_method_or_function
available (although:echo b:coc_current_function
works already); when using ctags, I have to move cursor at least once otherwise right after NeoVim starts:echo b:vista_nearest_method_or_function
says it doesn't exist.Expected behavior With the autocmd,
b:vista_nearest_method_or_function
is filled automatically without needing any intervention.Actual behavior Need to
:Vista
or move cursor otherwiseb:vista_nearest_method_or_function
doesn't exist.