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')
lint.linters_by_ft = {
markdown = { 'markdownlint' },
html = { 'htmlhint' },
json = { 'jsonlint' },
sh = { 'shellcheck' },
bash = { 'shellcheck' },
javascript = { 'eslint_d', 'trivy' },
typescript = { 'eslint_d' },
python = { 'pylint', 'trivy' },
ansible = { 'ansiblelint' },
gitcommit = { 'gitlint' },
docker = { 'trivy' },
yaml = { 'yamllint' },
editorconfig = { 'editorconfig-checker' },
systemd = { 'systemdlint' },
-- markdown = { 'markdownlint' },
-- html = { 'htmlhint' },
-- json = { 'jsonlint' },
-- sh = { 'shellharden', 'shellcheck' },
-- bash = { 'shellharden', 'shellcheck' },
-- javascript = { 'eslint_d', 'trivy' },
-- typescript = { 'eslint_d' },
-- python = { 'pylint', 'trivy' },
-- ansible = { 'ansiblelint' },
-- gitcommit = { 'gitlint' },
-- docker = { 'trivy' },
-- yaml = { 'trivy', 'yamllint' },
-- editorconfig = { 'editorconfig-checker' },
-- systemd = { 'systemdlint' },
}
local lint_augroup = vim.api.nvim_create_augroup('lint', { clear = true })
+34 -31
View File
@@ -31,22 +31,24 @@ return {
mason_tool_installer.setup({
automatic_installation = true,
automatic_enable = true,
automatic_cleanup = true,
ensure_installed = {
'ansible-lint',
'black',
'eslint_d',
'gitlint',
'htmlhint',
'isort',
'jsonlint',
'markdownlint',
'prettier',
'pylint',
'shellcheck',
'shellharden',
'stylua',
'trivy',
'yamllint',
-- 'ansible-lint',
-- 'black',
-- 'eslint_d',
-- 'gitlint',
-- 'htmlhint',
-- 'isort',
-- 'jsonlint',
-- 'markdownlint',
-- 'prettier',
-- 'pylint',
-- 'shellcheck',
-- 'shellharden',
-- 'stylua',
-- 'trivy',
-- 'yamllint',
},
})
end,
@@ -68,24 +70,25 @@ return {
mason_lspconfig.setup({
automatic_installation = true,
automatic_enable = true,
automatic_cleanup = true,
ensure_installed = {
'ansiblels',
'bashls',
'css_variables',
'cssls',
'cssmodules_ls',
'docker_compose_language_service',
'dockerls',
'emmet_ls',
'eslint',
'html',
'jsonls',
'lua_ls',
'markdown_oxide',
'marksman',
'pylsp',
'vimls',
'yamlls',
-- 'ansiblels',
-- 'bashls',
-- 'css_variables',
-- 'cssls',
-- '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,
ensure_installed = {
'lua',
'markdown',
'markdown_inline',
'css',
'html',
'javascript',
'json',
'xml',
'toml',
'yaml',
'python',
'bash',
'diff',
'regex',
'sql',
-- 'markdown',
-- 'markdown_inline',
-- 'css',
-- 'html',
-- 'javascript',
-- 'json',
-- 'xml',
-- 'toml',
-- 'yaml',
-- 'python',
-- 'bash',
-- 'diff',
-- 'regex',
-- 'sql',
},
highlight = {
enable = true,