https://github.com/zapling/mason-conform.nvim
Automatically install formatters registered with conform.nvim via mason.nvim
https://github.com/zapling/mason-conform.nvim
conform-nvim lua mason neovim-plugin nvim nvim-plugin
Last synced: 10 days ago
JSON representation
Automatically install formatters registered with conform.nvim via mason.nvim
- Host: GitHub
- URL: https://github.com/zapling/mason-conform.nvim
- Owner: zapling
- License: apache-2.0
- Created: 2024-02-05T12:08:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-08-08T10:49:28.000Z (6 months ago)
- Last Synced: 2025-10-10T06:49:15.669Z (3 months ago)
- Topics: conform-nvim, lua, mason, neovim-plugin, nvim, nvim-plugin
- Language: Lua
- Homepage:
- Size: 19.5 KB
- Stars: 99
- Watchers: 1
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mason-conform.nvim
Automatically install formatters registered with [conform.nvim](https://github.com/stevearc/conform.nvim) via [Mason](https://github.com/williamboman/mason.nvim).
# Install
```lua
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.nvim`
- `conform.nvim`
- `mason-conform.nvim`
Otherwise `mason-conform.nvim` will not have enough information about configured formatters and
access the mason registry.
# Configuration
```lua
require("mason-conform").setup({
ignore_install = {'prettier'} -- List of formatters to ignore during install
})
```
# Available formatters
Only formatters that are available in the [mason registry](https://github.com/mason-org/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](lua/mason-conform/mapping.lua).
# License
`mason-conform.nvim` is a blatant copy of [mason-nvim-lint](https://github.com/rshkarin/mason-nvim-lint)
which in turn takes heavy insperation from [mason-lspconfig.nvim](https://github.com/williamboman/mason-lspconfig.nvim)