mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
NVIM
- Added codespell as lint and removed codespell as formatter - Remove codespell lint info from trouble diagnostic
This commit is contained in:
@@ -24,7 +24,6 @@ return {
|
||||
sh = { { "shfmt", "shellharden" } },
|
||||
bash = { { "shfmt", "shellharden" } },
|
||||
zsh = { { "shfmt", "shellharden" } },
|
||||
["*"] = { "codespell" },
|
||||
["_"] = { "trim_whitespace" },
|
||||
},
|
||||
format_on_save = {
|
||||
|
||||
@@ -119,7 +119,10 @@ return {
|
||||
{
|
||||
"folke/trouble.nvim",
|
||||
cmd = { "TroubleToggle", "Trouble" },
|
||||
opts = { use_diagnostic_signs = true },
|
||||
opts = {
|
||||
use_diagnostic_signs = true,
|
||||
severity = vim.diagnostic.severity.WARN,
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>dx", "<cmd>TroubleToggle document_diagnostics<cr>", desc = "Document Diagnostics (Trouble)" },
|
||||
{ "<leader>dw", "<cmd>TroubleToggle workspace_diagnostics<cr>", desc = "Workspace Diagnostics (Trouble)" },
|
||||
|
||||
@@ -8,7 +8,18 @@ return {
|
||||
|
||||
-- Linters are only required for dynamically typed languages
|
||||
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" },
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user