this post was submitted on 29 Jun 2023
10 points (100.0% liked)

Neovim

29 readers
1 users here now

founded 1 year ago
MODERATORS
 

Is there a simple script or plugin that uses patterns to get the root project directory path of a rust project in lua? The pattern should be to vheck for 'Cargo.lock' file

you are viewing a single comment's thread
view the rest of the comments
[โ€“] jellyfish 3 points 1 year ago (1 children)

Another good option, and the one lazyvim went with, is ahmedkhalf/project.nvim

Ended up using nvim-rooter. I modified (copy pasted) some of its scripts into a fork of nvim-dap-projects to help setup nvim-dap for a better rust debugging experience. Thanks for the suggestion