- Added codespell as lint and removed codespell as formatter
- Remove codespell lint info from trouble diagnostic
This commit is contained in:
Pratik Tripathy
2024-03-09 22:29:49 +05:30
parent e85d1170bc
commit b24886c297
3 changed files with 16 additions and 3 deletions

View File

@@ -24,7 +24,6 @@ return {
sh = { { "shfmt", "shellharden" } }, sh = { { "shfmt", "shellharden" } },
bash = { { "shfmt", "shellharden" } }, bash = { { "shfmt", "shellharden" } },
zsh = { { "shfmt", "shellharden" } }, zsh = { { "shfmt", "shellharden" } },
["*"] = { "codespell" },
["_"] = { "trim_whitespace" }, ["_"] = { "trim_whitespace" },
}, },
format_on_save = { format_on_save = {

View File

@@ -119,7 +119,10 @@ return {
{ {
"folke/trouble.nvim", "folke/trouble.nvim",
cmd = { "TroubleToggle", "Trouble" }, cmd = { "TroubleToggle", "Trouble" },
opts = { use_diagnostic_signs = true }, opts = {
use_diagnostic_signs = true,
severity = vim.diagnostic.severity.WARN,
},
keys = { keys = {
{ "<leader>dx", "<cmd>TroubleToggle document_diagnostics<cr>", desc = "Document Diagnostics (Trouble)" }, { "<leader>dx", "<cmd>TroubleToggle document_diagnostics<cr>", desc = "Document Diagnostics (Trouble)" },
{ "<leader>dw", "<cmd>TroubleToggle workspace_diagnostics<cr>", desc = "Workspace Diagnostics (Trouble)" }, { "<leader>dw", "<cmd>TroubleToggle workspace_diagnostics<cr>", desc = "Workspace Diagnostics (Trouble)" },

View File

@@ -8,7 +8,18 @@ return {
-- Linters are only required for dynamically typed languages -- Linters are only required for dynamically typed languages
lint.linters_by_ft = { lint.linters_by_ft = {
python = { "pylint" }, python = { "pylint", "codespell" },
markdown = { "markdownlint", "codespell" },
yaml = { "yamllint" },
lua = { "codespell" },
bash = { "codespell" },
sh = { "codespell" },
zsh = { "codespell" },
typescript = { "codespell" },
javascript = { "codespell" },
typescriptreact = { "codespell" },
javascriptreact = { "codespell" },
html = { "codespell" },
["*"] = { "codespell" }, ["*"] = { "codespell" },
} }