Skip to content

pedrog14/mason-conform.nvim

Repository files navigation

mason-conform.nvim

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)

Requirements

Installation

{
    "pedrog14/mason-conform.nvim",
    lazy = false,
    dependencies = "williamboman/mason.nvim",
    opts = {}
}

Commands

Available after loading the plugin...

  • :ConformInstall [<source>...] - installs the provided formatters
  • :ConformUninstall [<source> ...] - uninstalls the provided formatters

Configuration

Example:

opts = {
    ensure_installed = { "stylua", "prettier" },
    handlers = {
        function(formatter_name)
            require("conform").formatters_by_ft = require("mason-conform").formatter_handler(formatter_name)
        end,
    },
}

About

Plugin that bridges mason.nvim with conform.nvim.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages