reworking lsp/mason configs

This commit is contained in:
2025-09-29 23:47:41 -04:00
parent 31f992a630
commit fce65354ea
3 changed files with 62 additions and 59 deletions
+14 -14
View File
@@ -6,20 +6,20 @@ return {
local lint = require('lint') local lint = require('lint')
lint.linters_by_ft = { lint.linters_by_ft = {
markdown = { 'markdownlint' }, -- markdown = { 'markdownlint' },
html = { 'htmlhint' }, -- html = { 'htmlhint' },
json = { 'jsonlint' }, -- json = { 'jsonlint' },
sh = { 'shellcheck' }, -- sh = { 'shellharden', 'shellcheck' },
bash = { 'shellcheck' }, -- bash = { 'shellharden', 'shellcheck' },
javascript = { 'eslint_d', 'trivy' }, -- javascript = { 'eslint_d', 'trivy' },
typescript = { 'eslint_d' }, -- typescript = { 'eslint_d' },
python = { 'pylint', 'trivy' }, -- python = { 'pylint', 'trivy' },
ansible = { 'ansiblelint' }, -- ansible = { 'ansiblelint' },
gitcommit = { 'gitlint' }, -- gitcommit = { 'gitlint' },
docker = { 'trivy' }, -- docker = { 'trivy' },
yaml = { 'yamllint' }, -- yaml = { 'trivy', 'yamllint' },
editorconfig = { 'editorconfig-checker' }, -- editorconfig = { 'editorconfig-checker' },
systemd = { 'systemdlint' }, -- systemd = { 'systemdlint' },
} }
local lint_augroup = vim.api.nvim_create_augroup('lint', { clear = true }) local lint_augroup = vim.api.nvim_create_augroup('lint', { clear = true })
+34 -31
View File
@@ -31,22 +31,24 @@ return {
mason_tool_installer.setup({ mason_tool_installer.setup({
automatic_installation = true, automatic_installation = true,
automatic_enable = true,
automatic_cleanup = true,
ensure_installed = { ensure_installed = {
'ansible-lint', -- 'ansible-lint',
'black', -- 'black',
'eslint_d', -- 'eslint_d',
'gitlint', -- 'gitlint',
'htmlhint', -- 'htmlhint',
'isort', -- 'isort',
'jsonlint', -- 'jsonlint',
'markdownlint', -- 'markdownlint',
'prettier', -- 'prettier',
'pylint', -- 'pylint',
'shellcheck', -- 'shellcheck',
'shellharden', -- 'shellharden',
'stylua', -- 'stylua',
'trivy', -- 'trivy',
'yamllint', -- 'yamllint',
}, },
}) })
end, end,
@@ -68,24 +70,25 @@ return {
mason_lspconfig.setup({ mason_lspconfig.setup({
automatic_installation = true, automatic_installation = true,
automatic_enable = true, automatic_enable = true,
automatic_cleanup = true,
ensure_installed = { ensure_installed = {
'ansiblels',
'bashls',
'css_variables',
'cssls',
'cssmodules_ls',
'docker_compose_language_service',
'dockerls',
'emmet_ls',
'eslint',
'html',
'jsonls',
'lua_ls', 'lua_ls',
'markdown_oxide', -- 'ansiblels',
'marksman', -- 'bashls',
'pylsp', -- 'css_variables',
'vimls', -- 'cssls',
'yamlls', -- 'cssmodules_ls',
-- 'docker_compose_language_service',
-- 'dockerls',
-- 'emmet_ls',
-- 'eslint',
-- 'html',
-- 'jsonls',
-- 'markdown_oxide',
-- 'marksman',
-- 'pylsp',
-- 'vimls',
-- 'yamlls',
}, },
}) })
@@ -9,20 +9,20 @@ return {
auto_install = true, auto_install = true,
ensure_installed = { ensure_installed = {
'lua', 'lua',
'markdown', -- 'markdown',
'markdown_inline', -- 'markdown_inline',
'css', -- 'css',
'html', -- 'html',
'javascript', -- 'javascript',
'json', -- 'json',
'xml', -- 'xml',
'toml', -- 'toml',
'yaml', -- 'yaml',
'python', -- 'python',
'bash', -- 'bash',
'diff', -- 'diff',
'regex', -- 'regex',
'sql', -- 'sql',
}, },
highlight = { highlight = {
enable = true, enable = true,