change lazy loading event

This commit is contained in:
2024-11-25 09:19:17 -05:00
parent 6c14c49c4a
commit ab1fab4bdc
+67 -67
View File
@@ -1,72 +1,72 @@
return { return {
'williamboman/mason.nvim', 'williamboman/mason.nvim',
dependencies = { dependencies = {
'williamboman/mason-lspconfig.nvim', 'williamboman/mason-lspconfig.nvim',
'WhoIsSethDaniel/mason-tool-installer.nvim', 'WhoIsSethDaniel/mason-tool-installer.nvim',
}, },
event = 'VeryLazy', cmd = 'Mason',
build = ':MasonUpdate', build = ':MasonUpdate',
config = function() config = function()
local mason = require('mason') local mason = require('mason')
local mason_lspconfig = require('mason-lspconfig') local mason_lspconfig = require('mason-lspconfig')
local mason_tool_installer = require('mason-tool-installer') local mason_tool_installer = require('mason-tool-installer')
mason.setup({ mason.setup({
ui = { ui = {
-- style = 'minimal', -- style = 'minimal',
border = 'rounded', border = 'rounded',
icons = { icons = {
package_installed = '', package_installed = '',
package_pending = '', package_pending = '',
package_uninstalled = '', package_uninstalled = '',
}, },
}, },
}) })
mason_lspconfig.setup({ mason_lspconfig.setup({
ensure_installed = { ensure_installed = {
'ansiblels', 'ansiblels',
'bashls', 'bashls',
'css_variables', 'css_variables',
'cssls', 'cssls',
'cssmodules_ls', 'cssmodules_ls',
'docker_compose_language_service', 'docker_compose_language_service',
'dockerls', 'dockerls',
'emmet_ls', 'emmet_ls',
'eslint', 'eslint',
'html', 'html',
'jinja_lsp', 'jinja_lsp',
'jsonls', 'jsonls',
'lua_ls', 'lua_ls',
'markdown_oxide', 'markdown_oxide',
'marksman', 'marksman',
'pylsp', 'pylsp',
'vimls', 'vimls',
'yamlls', 'yamlls',
}, },
}) })
mason_tool_installer.setup({ mason_tool_installer.setup({
ensure_installed = { ensure_installed = {
'ansible-lint', 'ansible-lint',
'beautysh', 'beautysh',
'black', 'black',
'eslint_d', 'eslint_d',
'gitlint', 'gitlint',
'htmlhint', 'htmlhint',
'isort', 'isort',
'jinja_lsp', 'jinja_lsp',
'jsonlint', 'jsonlint',
'markdownlint', 'markdownlint',
'prettier', 'prettier',
'pylint', 'pylint',
'shellcheck', 'shellcheck',
'shellharden', 'shellharden',
'stylua', 'stylua',
'trivy', 'trivy',
'yamllint', 'yamllint',
}, },
}) })
end, end,
} }