haskell-mode
haskell-mode copied to clipboard
Jump to definition is broken with LSP and doom-emacs
M-. is broken when using it with lsp-mode and doom-emacs, which has a very nice setup that works with all other language modes. The problem is that M-. is bound to the internal haskell-mode function haskell-mode-jump-to-def-or-tag. This prevents lsp-mode and doom-emacs from using it, and results in it not working at all with the error Unable to find symbol in current document.
The only way to fix this is to unset the keybinding after loading haskell-mode.
Since we now require Emacs 25.1, we should likely just define and register an xref backend, so that the default M-. binding will pick that up. Afaik lsp-mode overrides that with its own backend in order to provide its functionality.
I believe that is correct, lsp-mode uses xref.