add mason-tool-installer

This commit is contained in:
Adam 2024-01-09 16:37:08 -05:00
parent a772f16d84
commit 7589157d5a
2 changed files with 23 additions and 2 deletions

View file

@ -21,7 +21,11 @@ require('lazy').setup({
'neovim/nvim-lspconfig', 'neovim/nvim-lspconfig',
dependencies = { dependencies = {
-- Automatically install LSPs to stdpath for neovim -- Automatically install LSPs to stdpath for neovim
{ 'williamboman/mason.nvim', config = true }, { 'williamboman/mason.nvim', config = true,
dependencies = {
"WhoIsSethDaniel/mason-tool-installer.nvim",
},
},
'williamboman/mason-lspconfig.nvim', 'williamboman/mason-lspconfig.nvim',
-- Useful status updates for LSP -- Useful status updates for LSP
@ -201,7 +205,7 @@ require('lazy').setup({
json = { { 'prettierd', 'prettier' } }, json = { { 'prettierd', 'prettier' } },
lua = { 'stylua' }, lua = { 'stylua' },
markdown = { { 'prettierd', 'prettier' } }, markdown = { { 'prettierd', 'prettier' } },
rust = { 'rustfmt' }, rust = { 'rustywind', 'rustfmt' },
scss = { { 'prettierd', 'prettier' } }, scss = { { 'prettierd', 'prettier' } },
sh = { 'shellharden', 'beautysh' }, sh = { 'shellharden', 'beautysh' },
toml = { 'taplo' }, toml = { 'taplo' },

View file

@ -100,6 +100,23 @@ local servers = {
zls = {}, zls = {},
} }
local mason_tool_installer = require 'mason-tool-installer'
mason_tool_installer.setup {
ensure_installed = {
'beautysh',
'eslint_d',
'htmlbeautifier',
'nginx-language-server',
'prettier',
'prettierd',
'rustywind',
'shellcheck',
'shellharden',
'stylua',
'yamlfix',
},
}
-- Setup neovim lua configuration -- Setup neovim lua configuration
require('neodev').setup() require('neodev').setup()