add my defaults to be installed by mason

This commit is contained in:
Thomas Ruoff
2025-06-12 23:47:18 +02:00
parent a503c452b6
commit 4478a36f5b
2 changed files with 18 additions and 2 deletions

View File

@@ -16,7 +16,9 @@ local function get_root()
-- Define priority order (higher priority first)
local priority_order = {
'vtsls',
'eslint', -- formatting/linting servers last
'jsonls',
'bashls',
'yamlls',
}
-- Find highest priority client

View File

@@ -201,7 +201,6 @@ return {
-- ts_ls = {},
--
eslint = { enable = true },
vtsls = {
root_dir = function(bufnr, cb)
local fname = vim.api.nvim_buf_get_name(bufnr)
@@ -246,6 +245,14 @@ return {
},
},
},
bashls = { enable = true },
cssls = { enable = true },
html = { enable = true },
jsonls = { enable = true },
marksman = { enable = true },
sqlls = { enable = true },
yamlls = { enabled = true },
}
---@type MasonLspconfigSettings
@@ -270,6 +277,13 @@ return {
local ensure_installed = vim.tbl_keys(servers or {})
vim.list_extend(ensure_installed, {
'stylua', -- Used to format Lua code
'eslint_d',
'prettierd',
'checkmake',
'hadolint',
'shellcheck',
'shfmt',
'sqlfluff',
})
require('mason-tool-installer').setup { ensure_installed = ensure_installed }