Closed Jint-lzxy closed 10 months ago
Can we consider other alternatives like conform.nvim
, the advantages of which seem attractive.
https://github.com/ayamir/nvimdots/issues/851#issuecomment-1836305987
conform.nvim
provides format_on_save
and format_after_save
to make it easier to customize the formatting of the save, and to add unsupported formatting programs.
my fork repository configuration can be used as a reference,please forgive me if the code is written badly conform config formate config
I tend to none-ls
b/c we have too many stuffs binding with null-ls
and none-ls
is maintained by community now.
As @Mythos-404 stated:
After I replaced null-ls with conform.nvim I found that conform.nvim has these advantages over
- startup speed improvement
- performance improvement when formatting
- formatting without breaking code folding
- the ability to specify a range of formatting
Could u show us some profile numbers to let we know that's the trade-off? Or I can do it when I got time.
Tho there might be some attractive side of conform.nvim
, as @YuCao16 said, i dont really see it as a replacement to null-ls.nvim
. For example, null-ls
provides "Code actions", "Hover" and so on to be configured; however, i dont see sth relatable in conform.nvim
? (or did i missed it?)
But i do appreciate the comprehensiveness of conform.nvim
about formatting.
Continuity of the user experiences is also a big part when planing migrations, users with less experiences will pop up with A LOT OF issues. However, if it worth the pain, i think we'll all embrace the change!
Could u show us some profile numbers to let we know that's the trade-off?
Use none-ls.nvim
first, after all, null.nvim
has not been maintained for too long.
Migrating null-ls.nvim
to conform.nvim
requires a lot of code changes, which is not cost-effective at the moment, after all, nvimdots
has a mature null-ls.nvim
configuration now.
IMO we can switch to
none-ls
before we decide on the best alternative tonull-ls
b/c it's a drop-in replacement fornull-ls
, and we can continue to receive future bug fixes as well.