https://github.com/eval-exec/cargo-jump-xref.el
In `Cargo.toml` file, support `xref-find-definitions` for cargo dependencies
https://github.com/eval-exec/cargo-jump-xref.el
cargo emacs xref
Last synced: 1 day ago
JSON representation
In `Cargo.toml` file, support `xref-find-definitions` for cargo dependencies
- Host: GitHub
- URL: https://github.com/eval-exec/cargo-jump-xref.el
- Owner: eval-exec
- License: gpl-3.0
- Created: 2024-10-04T14:34:25.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-10-04T16:01:42.000Z (9 months ago)
- Last Synced: 2025-03-20T04:46:23.830Z (3 months ago)
- Topics: cargo, emacs, xref
- Language: Emacs Lisp
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cargo-jump-xref
When I working on `Cargo.toml` file, this `cargo-jump-xref.el` help me to execute `xref-find-definitions` on a cargo dependency, jump to the dependency's source code.
You need to add `cargo-jump-xref-backend` to `xref-backend-functions`, then you can open a `Cargo.toml` file, move cursor on a cargo dependency, execute `xref-find-definitions` will jump to the cargo dependency's source file.
```elisp
(use-package cargo-jump-xref
:ensure
(:type git :host github :repo "eval-exec/cargo-jump-xref.el")
:config
(add-to-list 'xref-backend-functions #'cargo-jump-xref-backend))
```