Get rust program project root using lua script

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

14 points · 6 comments · view on lemmy.world

6 Comments

Hexarei@programming.dev · 3 pts · 3y (3 replies)

I've had great success with https://github.com/airblade/vim-rooter, for rust projects and many others

howarddo@programming.dev · 2 pts · 3y

Nice! Didn't know I need it

wisefoolkp@programming.dev · 2 pts · 3y (1 reply)

It works as expected, thank you

Hexarei@programming.dev · 1 pts · 3y

Excellent!

Miaou@jlai.lu · 1 pts · 2y

If it's that simple why are you not writing it yourself?