From fce65354ea3a5beed147a1210da9d11b99f19608 Mon Sep 17 00:00:00 2001 From: Charles Danesi Date: Mon, 29 Sep 2025 23:47:41 -0400 Subject: [PATCH] reworking lsp/mason configs --- .config/nvim/lua/plugins/linting.lua | 28 ++++---- .config/nvim/lua/plugins/mason.lua | 65 ++++++++++--------- .../lua/plugins/treesitter/treesitter.lua | 28 ++++---- 3 files changed, 62 insertions(+), 59 deletions(-) diff --git a/.config/nvim/lua/plugins/linting.lua b/.config/nvim/lua/plugins/linting.lua index c092d6a..7bfc288 100644 --- a/.config/nvim/lua/plugins/linting.lua +++ b/.config/nvim/lua/plugins/linting.lua @@ -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 }) diff --git a/.config/nvim/lua/plugins/mason.lua b/.config/nvim/lua/plugins/mason.lua index 8e97cd3..6650fef 100644 --- a/.config/nvim/lua/plugins/mason.lua +++ b/.config/nvim/lua/plugins/mason.lua @@ -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', }, }) diff --git a/.config/nvim/lua/plugins/treesitter/treesitter.lua b/.config/nvim/lua/plugins/treesitter/treesitter.lua index 12cf719..c409f50 100644 --- a/.config/nvim/lua/plugins/treesitter/treesitter.lua +++ b/.config/nvim/lua/plugins/treesitter/treesitter.lua @@ -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,