add mason-tool-installer
This commit is contained in:
parent
a772f16d84
commit
7589157d5a
2 changed files with 23 additions and 2 deletions
|
@ -21,7 +21,11 @@ require('lazy').setup({
|
|||
'neovim/nvim-lspconfig',
|
||||
dependencies = {
|
||||
-- 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',
|
||||
|
||||
-- Useful status updates for LSP
|
||||
|
@ -201,7 +205,7 @@ require('lazy').setup({
|
|||
json = { { 'prettierd', 'prettier' } },
|
||||
lua = { 'stylua' },
|
||||
markdown = { { 'prettierd', 'prettier' } },
|
||||
rust = { 'rustfmt' },
|
||||
rust = { 'rustywind', 'rustfmt' },
|
||||
scss = { { 'prettierd', 'prettier' } },
|
||||
sh = { 'shellharden', 'beautysh' },
|
||||
toml = { 'taplo' },
|
||||
|
|
|
@ -100,6 +100,23 @@ local servers = {
|
|||
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
|
||||
require('neodev').setup()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue