mason-conform bridges mason.nvim with the conform.nvim plugin - making it easier to use both plugins together.
(It is also a blatant copy of mason-lspconfig, all credits to williamboman)
- Neovim version Neovim 0.10+
- mason.nvim
- conform.nvim
{
"pedrog14/mason-conform.nvim",
lazy = false,
dependencies = "williamboman/mason.nvim",
opts = {}
}
Available after loading the plugin...
:ConformInstall [<source>...]
- installs the provided formatters:ConformUninstall [<source> ...]
- uninstalls the provided formatters
Example:
opts = {
ensure_installed = { "stylua", "prettier" },
handlers = {
function(formatter_name)
require("conform").formatters_by_ft = require("mason-conform").formatter_handler(formatter_name)
end,
},
}