liuchengxu / vista.vim

:cactus: Viewer & Finder for LSP symbols and tags
https://liuchengxu.github.io/vista.vim
MIT License
1.88k stars 89 forks source link

E121: undefined variable: g:vista_default_executive in MacVim #445

Closed ubaldot closed 1 year ago

ubaldot commented 1 year ago

Describe the bug I have the following lines in my .gvimrc

Vista! Current function
function! NearestMethodOrFunction() abort
    return get(b:, 'vista_nearest_method_or_function', '')
endfunction

augroup FuncNameGet
    autocmd!
    autocmd GUIEnter * call vista#RunForNearestMethodOrFunction()
augroup END

" The error won't appear if I rename the .gvimrc in .vimrc, so I am considering this as temporary solution.

Environment:

Vista info

:Vista info command does not work.

  1. Just open MacVim and be sure that you are using a .gvimrc file (not a .vimrc file)
image