project.nvim icon indicating copy to clipboard operation
project.nvim copied to clipboard

feat: Add get_current_project() API

Open D7ry opened this issue 1 year ago • 4 comments

I would like to see the name of the current project on my lueline , so I added get_current_project() to the API. Under the hood, it uses get_project_root and simply uses regex to take the directory name.

A snazzy screenshot of lualine working nicely with the API: image

D7ry avatar Mar 25 '24 22:03 D7ry

Yes, lets do this one!!

webmandman avatar Apr 17 '24 04:04 webmandman

@D7ry I used your code and it works good. Thank you. For now I'm using my fork from this repo.

webmandman avatar Apr 18 '24 23:04 webmandman