-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmason.lua
More file actions
55 lines (53 loc) · 1.66 KB
/
mason.lua
File metadata and controls
55 lines (53 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
-- https://github.com/mason-org/mason.nvim
-- https://github.com/mason-org/mason-lspconfig.nvim
-- https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim
-- https://github.com/williamboman/mason.nvim
return {
"mason-org/mason.nvim",
-- event = "VeryLazy", -- vim fails to load LSPs if Mason is not loaded early enough
dependencies = {
"WhoIsSethDaniel/mason-tool-installer.nvim",
},
config = function()
local mason = require("mason")
local mason_tool_installer = require("mason-tool-installer")
mason.setup({
PATH = "prepend", -- default
-- PATH = "append",
ui = {
icons = {
package_installed = "✓",
package_pending = "➜",
package_uninstalled = "✗",
},
},
})
mason_tool_installer.setup({
-- check which linters are already available on system
ensure_installed = {
---- Formatters
"prettier",
"stylua",
-- I already have most of these tools installed on my system
-- "shfmt", -- system
---- Linters
-- "eslint_d", -- system
-- "shellcheck", -- system
-- "tflint", -- system
-- "yamllint", -- system
-- "ruff", -- system
-- "black", -- system
-- "taplo", -- system
---- Go
-- "golines", -- system
-- "gofumpt", -- system
-- "goimports", -- system
-- "gomodifytags", -- system
-- "golangci-lint", -- system
-- "gotests", -- system
-- "iferr", -- system
-- "impl", -- system
},
})
end,
}