zapling / mason-conform.nvim

Automatically install formatters registered with conform.nvim via mason.nvim
Apache License 2.0
35 stars 1 forks source link

Ensure installed? #5

Open SDA-31 opened 1 month ago

SDA-31 commented 1 month ago

My Neovim configuration is declarative and I prefer to write the configuration once which automatically installs all the required packages. Could you provide ensure_installed mechanism, like in mason-lspconfig.nvim or mason-null-ls.nvim?

zapling commented 1 month ago

If you want to explicitly define which mason packages you want to install, I think you are better of using https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim which lets you do that, regardless if it's a linter, formatter or lsp.

I don't see the benefit of adding ensure_installed when there is other tools that do that, and support more sources than just those specific for conform.

LeonardoMor commented 1 month ago

I use this one for the conform tools and WhoIsSethDaniel/mason-tool-installer.nvim for everything else.

zapling commented 1 month ago

I fail to see how this plugin brings any value in this use case? The mason-tool-installer should be able to install any tools (conform included) as long as they are in the mason registry https://mason-registry.dev/registry/list. There is slight change in the package names from confrom to mason, but in like 99% of the cases they are identical https://github.com/zapling/mason-conform.nvim/blob/main/lua/mason-conform/mapping.lua

LeonardoMor commented 1 month ago

Just not having to write the name of tools in multiple places, and now the ignore list.