12

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

top 7 comments
sorted by: hot top new old
[-] Hexarei@programming.dev 3 points 3 years ago

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

[-] howarddo@programming.dev 2 points 3 years ago* (last edited 3 years ago)

Nice! Didn't know I need it

[-] wisefoolkp@programming.dev 2 points 3 years ago

It works as expected, thank you

[-] Hexarei@programming.dev 1 points 3 years ago
[-] jellyfish@beehaw.org 3 points 3 years ago

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

[-] wisefoolkp@programming.dev 1 points 3 years ago

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

[-] Miaou@jlai.lu 1 points 2 years ago

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

load more comments
view more: next ›
this post was submitted on 29 Jun 2023
12 points (100.0% liked)

Neovim

2906 readers
8 users here now

founded 3 years ago
MODERATORS