dotfiles/lua/plugins/mason.lua
Gered bd7eb9be0f move mason and related config out of lsp
i don't like having a large part of the mason config stuffed away in
the lsp plugin config file as lsp isn't the only thing that mason helps
with.

however it is a bit icky to organize, as mason config does need to be
spread out in different places to integrate with the different
components like lsp, dap, formatting, etc.
2024-09-06 18:34:47 -04:00

51 lines
1.1 KiB
Lua

return {
{
'williamboman/mason.nvim',
dependencies = {
'williamboman/mason-lspconfig.nvim',
'WhoIsSethDaniel/mason-tool-installer.nvim',
'jay-babu/mason-nvim-dap.nvim',
},
config = function()
require('mason').setup()
require('mason-tool-installer').setup {
auto_update = false,
run_on_start = true,
ensure_installed = {
-- LSP
'ansible-language-server',
'bash-language-server',
'clangd',
'cmake-language-server',
'css-lsp',
'docker-compose-language-service',
'dockerfile-language-server',
'html-lsp',
'jdtls',
'json-lsp',
'lua-language-server',
'perlnavigator',
'pylyzer',
'ruby-lsp',
'sqlls',
'terraform-ls',
'vim-language-server',
'yaml-language-server',
-- DAP
'codelldb',
-- Linter
'ansible-lint',
-- Formatter
'clang-format',
'stylua',
'yamlfmt',
},
}
end,
},
}