You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In terms of speed, these two backends are really similar (I am using git-grep and rg for dumb-jump). But I've noticed that the jumps that LSP gives are usually more accurate, and dumb-jump sometimes gives too many candidates, or jump to an undesired place.
So I was wondering if it's a common practice to use the lsp-mode xref jumps if LSP is available, and then use dumb-jump for languages that LSP doesn't yet support?
The text was updated successfully, but these errors were encountered:
But I've noticed that the jumps that LSP gives are usually more accurate, and dumb-jump sometimes gives too many candidates, or jump to an undesired place.
Yeah, this is basically the "dumb" part of dumb-jump. Since it's just regular expressions under the hood it doesn't actually have much/any understanding of your code, but for the most part just works without setting up and configuring an LSP.
So I was wondering if it's a common practice to use the lsp-mode xref jumps if LSP is available, and then use dumb-jump for languages that LSP doesn't yet support?
I definitely think there are people that do this and https://github.com/jojojames/smart-jump is a similar idea, as far as having a language-specific jumper configured and falling back to dumb-jump. That said, I personally only use dumb-jump so not fully aware of what else people are doing "above it".
@jacktasia I see, thanks for the reply. I guess I can stick to using lsp jumps when available and fall back to dumb-jump for languages without lsp. Nevertheless, this package is awesome and thank you for putting all the work. It's always nice to have different options, and I appreciate dumb-jump's straight-forwardness and simplicity.
In terms of speed, these two backends are really similar (I am using git-grep and rg for dumb-jump). But I've noticed that the jumps that LSP gives are usually more accurate, and dumb-jump sometimes gives too many candidates, or jump to an undesired place.
So I was wondering if it's a common practice to use the lsp-mode xref jumps if LSP is available, and then use dumb-jump for languages that LSP doesn't yet support?
The text was updated successfully, but these errors were encountered: