doom-nvim icon indicating copy to clipboard operation
doom-nvim copied to clipboard

[BUG] Jump to definition bind from `<leader> c d` is overridden by diagnostics

Open robclancy opened this issue 2 years ago • 0 comments
trafficstars

I just spent a fair while thinking the language server didn't work or I'm not understanding something because I don't see a "Jump to Definition" option. Eventually using the gd I found it was fine but I was still confused why <leader> c wouldn't have it as an option.

Well you do, but it is overridden by diagnostics.

https://github.com/doom-neovim/doom-nvim/blob/main/lua/doom/modules/features/lsp/init.lua#L355

https://github.com/doom-neovim/doom-nvim/blob/main/lua/doom/modules/features/lsp/init.lua#L368

Diagnostics should probably be set to something else.

Also pressing g doesn't give any of the LSP stuff in the help there either, but I assume that is by design.

robclancy avatar Apr 25 '23 13:04 robclancy