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 must log in or # to comment.
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 ofnvim-dap-projectsto help setupnvim-dapfor a better rust debugging experience. Thanks for the suggestion
I’ve had great success with https://github.com/airblade/vim-rooter, for rust projects and many others
Nice! Didn’t know I need it
It works as expected, thank you
Excellent!
If it’s that simple why are you not writing it yourself?




