c41b19222db71b016e55c64454b5e03441f56859
Co-authored-by: Andreas Palm <andreaspalm98@gmail.com>
mason-conform.nvim
Auto install formatters registered with conform.nvim via Mason.
Install
require("lazy").setup({
"williamboman/mason.nvim",
"stevearc/conform.nvim",
"zapling/mason-conform.nvim",
})
Setup
It's crucial to setup plugins in the following order:
mason.nvimconform.nvimmason-conform.nvim
Otherwise mason-conform.nvim will not have enough information about configured formatters and
access the mason registry.
Configuration
require("mason-conform").setup()
Available formatters
Only formatters that are available in the mason registry
can be downloaded automatically. If the formatter is available in the registry and it's not being
downloaded, this plugin might be missing a conform => mason mapping in the file lua/mason-conform/mapping.lua.
License
mason-conform.nvim is a blatant copy of mason-nvim-lint
which in turn takes heavy insperation from mason-lspconfig.nvim
Languages
Lua
100%