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 register to comment.
- Hexarei ( @Hexarei@programming.dev ) 3•1 year ago
I’ve had great success with https://github.com/airblade/vim-rooter, for rust projects and many others
It works as expected, thank you
- Hexarei ( @Hexarei@programming.dev ) 1•1 year ago
Excellent!
- Howard Do ( @howarddo@programming.dev ) 2•1 year ago
Nice! Didn’t know I need it
- jellyfish ( @jellyfish@beehaw.org ) 3•1 year ago
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-projects
to help setupnvim-dap
for a better rust debugging experience. Thanks for the suggestion
- Miaou ( @Miaou@jlai.lu ) 1•1 year ago
If it’s that simple why are you not writing it yourself?