0

I've noticed the keymap

nmap <silent> gd <Plug>(coc-definition)

will highlight similar to

nnoremap <leader>* :CocSearch <C-R>=expand("<cword>")<CR><CR>

instead of doing <Plug>(coc-definition) as it should.

This happens only when I have a small timeoutlen, which I do because I find the insert mode is laggy with the default value.

I've already check :map gd and I don't have any other key mapped to gd. Although I have

o  g%            <Plug>(MatchitOperationBackward)
x  g%            <Plug>(MatchitVisualBackward)
n  g%            <Plug>(MatchitNormalBackward)

which I believe might be a source of error, but I am not sure.

How to make gd work even with a small timeoutlen?

Note: I am using Neovim 0.4.3.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.