aboutsummaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/eugenetriguba/plugins/mason.lua
blob: 9abfd563bcefa2edf274602e510e76336c1da64d (plain) (blame)
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
vim.pack.add {
  {
    name = 'mason.nvim',
    src = 'https://github.com/williamboman/mason.nvim',
  },
  {
    name = 'mason-tool-installer.nvim',
    src = 'https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim',
  },
}

local lsps = {
  'lua-language-server',
  'clangd',
  'gopls',
  'ty',
  'yaml-language-server',
  'rust-analyzer',
  'typescript-language-server',
  'terraform-ls',
  'bash-language-server',
  'jdtls',
}

local formatters = {
  'prettierd',
  'stylua',
  'black',
  'isort',
  'clang-format',
  'terraform',
  'shfmt',
  'google-java-format',
  'taplo',
}

local linters = {
  'hadolint',
  'jsonlint',
  'tflint',
  'ruff',
  'shellcheck',
}

local tools = {}
vim.list_extend(tools, lsps)
vim.list_extend(tools, formatters)
vim.list_extend(tools, linters)

require('mason').setup {}
require('mason-tool-installer').setup { ensure_installed = tools }