Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure installed? #5

Open
SDA-31 opened this issue May 19, 2024 · 4 comments
Open

Ensure installed? #5

SDA-31 opened this issue May 19, 2024 · 4 comments

Comments

@SDA-31
Copy link

SDA-31 commented May 19, 2024

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
Copy link
Owner

zapling commented May 19, 2024

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
Copy link

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

@zapling
Copy link
Owner

zapling commented May 19, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants