Upate Mason Config

This commit is contained in:
Fraser Fewster 2025-10-02 00:06:55 +01:00 committed by Fraser Fewster
parent aa0432684f
commit bbda49daf5
4 changed files with 11 additions and 35 deletions

View File

@ -716,6 +716,16 @@ require('lazy').setup({
local ensure_installed = vim.tbl_keys(servers or {})
vim.list_extend(ensure_installed, {
'stylua', -- Used to format Lua code
'ts_ls',
'biome',
'docker_compose_language_service',
'dockerls',
'graphql',
'jsonls',
'sqlls',
'yamlls',
'eslint',
'bashls',
})
require('mason-tool-installer').setup { ensure_installed = ensure_installed }

View File

@ -6,6 +6,5 @@ return {
require 'custom.plugins.comment',
require 'custom.plugins.tabs',
require 'custom.plugins.copilot',
require 'custom.plugins.masonconfig',
require 'custom.plugins.neo-tree-config',
}

View File

@ -1,31 +0,0 @@
return {
{
'williamboman/mason.nvim',
opts = function(_, opts)
-- Ensure these tools are installed
opts.ensure_installed = opts.ensure_installed or {}
local ensure_installed = {
'ts_ls',
'biome',
'docker_compose_language_service',
'dockerls',
'graphql',
'jsonls',
'sqlls',
'yamlls',
'eslint',
'bashls',
}
-- Merge with existing ensure_installed if any
for _, tool in ipairs(ensure_installed) do
if not vim.tbl_contains(opts.ensure_installed, tool) then
table.insert(opts.ensure_installed, tool)
end
end
return opts
end,
},
}

View File

@ -24,9 +24,7 @@ return {
end, { desc = 'Focus NeoTree' })
-- Setup neo-tree
require('neo-tree').setup {
-- Add any neo-tree options here if needed
}
require('neo-tree').setup {}
end,
},
}