Add keyword: 'done'
Fix wrong jumps when searching for enum types
Search only single-token identifiers in current function
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
Run :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>
HAREPATH
for a projectSet and export HAREPATH
before starting vim or set it inside vim. Example:
:let $HAREPATH = '/home/max/repos/madeline:/usr/local/src/hare/stdlib'
(Create a .exrc
file for a project specific HAREPATH
. This requires set exrc
in your .vimrc
.)