Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

LazyVim gives you Mason to install Black. You could use :MasonInstall black and restart Nvim to ensure black is loaded.

Or if you want to have it automatically available on other setups, black is a builtin formatter in Null-LS, so you would just have to add "black" to your builtin list for your Null-LS configuration.

Format on save is already set up.

I've not used LazyVim. It took me 30seconds to look at the docs to see what was available. Yes, getting to the point where you have Mason, NullLS and LspConfig and the glue-plugins to make them work well together takes more than 30-seconds to set up, but once it is adding a new LSP or formatter takes no time at all.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: