There's no way to remap gd
I want neovim's default behavior of gd instead of the current goToDefinition. However, I haven't figured out a way to unbind oni's binding. oni.input.unbind("gd") does not work. Doing unmap gd from init.vim doesn't work either.
Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.
@dlee thanks for logging this and for trying Oni 👍
So at present oni cannot unbind vim bindings (we've briefly discussed if this would be valuable functionality #1435) so in order to unbind a vim binding this would have to be done in your init.vim (can you post a minimal init.vim as Im not sure why that doesn't work).
Oni does however give priority to its bindings so ordinarily this would work however we are still working on being able to take chorded input #1055 #1892. Once this work is complete that binding should be able to work.
In the interim having attempted what you are trying I use <cmd>d I appreciate this isn't quite what you were looking for but currently the only combination input that works is <modifier>-key aka alt, cmd, ctrl
Here's a workaround that works for now:
" overwrite oni mapping
function! Unmap_gd(timer)
noremap gd gd
endfunction
call timer_start(1, 'Unmap_gd')