jump-tree
jump-tree copied to clipboard
Integrating jump-tree with xref and lsp
Hi jump-tree developers,
Thanks very much for a most useful mode. I have a bit of a weird set of questions, which are mostly due to my ignorance of how to use jump-tree - so please bear with me. Let me explain my use case: I'd like to have a single "global" jump-tree that only remembers whenever I jump using either an xref command or an lsp command (e.g. find definitions etc). I don't really want any other commands as I want to keep it simple whilst I am trying to get my head around jump-tree, if I'm honest.
So far I have been playing around with jump-tree-pos-list-record-commands
but I haven't had much luck. So my questions are:
- can I have a single, global jump tree or is it "buffer specific"?
- do I need to do anything else other than add the commands I'm interested in to
jump-tree-pos-list-record-commands
? At present I have:
(setq jump-tree-pos-list-record-commands '(
lsp-find-definition
xref-find-definitions))
I'd be happy to hear any other suggestions which you may think useful.
Many thanks for your time.