Jump to the definitions of functions, types, variables and constants.
hare-jump uses grep (or ripgrep if available) to find definitions
outside the current buffer and takes the
$HAREPATH into account.
mkdir -p ~/.vim/pack/plugins/start cd ~/.vim/pack/plugins/start git clone https://git.sr.ht/~maxgyver83/hare-jump.vim
:HareJumpToDefinition with the cursor on a symbol. This plugin binds this command to
CTRL-] (usually used for
ctags which doesn't support Hare yet).
:HareJumpToDefinition symbol works as well.
Bind the Hare jump command to a different key, for example CTRL-t:
nnoremap <buffer><silent> <C-t> :HareJumpToDefinition<CR>
HAREPATHfor a project
Set and export
HAREPATH before starting vim or set it inside vim. Example:
:let $HAREPATH = '/home/max/repos/madeline:/usr/local/src/hare/stdlib'
.exrc file for a project specific
HAREPATH. This requires
set exrc in your