configure formatters and linters
This commit is contained in:
parent
c47afa2471
commit
b045d7c627
5 changed files with 269 additions and 7 deletions
24
lua/plugins/mason-tool-installer.lua
Normal file
24
lua/plugins/mason-tool-installer.lua
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
-- Mason tool installer for formatters and linters
|
||||
-- Note: phpcs/phpcbf already installed globally, not included here
|
||||
|
||||
return {
|
||||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||
dependencies = { "williamboman/mason.nvim" },
|
||||
config = function()
|
||||
require("mason-tool-installer").setup({
|
||||
ensure_installed = {
|
||||
-- Formatters
|
||||
"prettier", -- JS, TS, CSS, JSON, Markdown, HTML
|
||||
"stylua", -- Lua
|
||||
-- Note: phpcbf already installed globally
|
||||
|
||||
-- Linters
|
||||
"eslint_d", -- JS, TS (daemon version for speed)
|
||||
"markdownlint", -- Markdown
|
||||
-- Note: phpcs already installed globally
|
||||
},
|
||||
auto_update = false,
|
||||
run_on_start = true,
|
||||
})
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue