Closed low-on-mana closed 4 years ago
nnoremap <C-]> :execute 'Djump' expand('<cword>') <CR>
Found an ugly way to do it.
I think providing <C-]>
would be cool but only if we also support its companion <C-T>
, i.e. implement a tag stack.
Slightly cleaner override in the meantime:
autocmd FileType clojure nmap <buffer> <C-]> ]<C-D>
I know that this was suggested a while ago, but this still would be a huge benefit.
How to override above with <ctrl-]>
Personally, I think <ctrl-]> should be default goto definition key, as the tag file generation is not required anymore with vim-fireplace.
This behavior is practiced by fatih/vim-go as well.