ahmedkhalf / project.nvim

The superior project management solution for neovim.
Apache License 2.0
1.29k stars 119 forks source link

feat: Add get_current_project() API #149

Open D7ry opened 3 months ago

D7ry commented 3 months ago

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

webmandman commented 2 months ago

Yes, lets do this one!!

webmandman commented 2 months ago

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