Skip to content

Automatically install formatters registered with conform.nvim via mason.nvim

License

Notifications You must be signed in to change notification settings

zapling/mason-conform.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

mason-conform.nvim

Automatically 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.nvim
  • conform.nvim
  • mason-conform.nvim

Otherwise mason-conform.nvim will not have enough information about configured formatters and access the mason registry.

Configuration

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

About

Automatically install formatters registered with conform.nvim via mason.nvim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages