mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16: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" } },
|
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 = {
|
||||||
|
|||||||
@@ -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)" },
|
||||||
|
|||||||
@@ -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" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user