nix-community / nixvim

Configure Neovim with Nix! [maintainer=@GaetanLepage, @traxys, @mattsturgeon]
https://nix-community.github.io/nixvim
MIT License
1.38k stars 208 forks source link

none-ls: updating + refactoring #1705

Open MattSturgeon opened 2 weeks ago

MattSturgeon commented 2 weeks ago

Overview issue to track specific issues, PRs, and ideas related to updating and refactoring none-ls.

General notes and discussion can be had on this issue, but I'd encourage opening discussions or issues for specific issues. These can be linked in the relevant checklist above.

Tagging @traxys because he's done most of the work on the none-ls module so far.

traxys commented 2 weeks ago

Consider how enableLspFormat should work with rfc42 settings?

I'd say we leave it as a top level option, top level options are options that are defined by nixvim, not the wrapped plugin

MattSturgeon commented 2 weeks ago

Consider how enableLspFormat should work with rfc42 settings?

I'd say we leave it as a top level option, top level options are options that are defined by nixvim, not the wrapped plugin

Are we still happy for it to default to true (when lsp-format is enabled)? I think that's a sane default, but it is configuring things for the user without them explicitly enabling anything...

traxys commented 2 weeks ago

I have mostly taken the approach of avoiding to introduce new magic in nixvim in the last year, so if it were a new plugin i'd suggest not defaulting to false. For this specific case I don't know

niksingh710 commented 2 weeks ago

If I enable the lsp-format plugin and set enableLspFormat to true in none-LS, the files are automatically formatted on save. Is there a way to disable this behavior?