neovim(python): Use basedpyright for LSP & ruff for linting &

formatting
This commit is contained in:
Pratik Tripathy
2025-10-20 16:56:12 +05:30
parent b92617e518
commit 8bcea5312e
6 changed files with 9 additions and 14 deletions

View File

@@ -21,11 +21,12 @@ return {
lua = { "stylua" },
markdown = { "markdownlint" },
python = { "black" },
rust = { "rustfmt" },
python = { "ruff_fix", "ruff_format", "ruff_organize_imports" },
xml = { "xmllint" },
yaml = { "yamlfmt" },
rust = { "rustfmt" },
["_"] = { "trim_whitespace" },
},
format_on_save = {

View File

@@ -8,11 +8,11 @@ return {
-- Linters are only required for dynamically typed languages
lint.linters_by_ft = {
python = { "pylint" },
markdown = { "markdownlint" },
yaml = { "yamllint", "trivy" },
dockerfile = { "hadolint", "trivy" },
markdown = { "markdownlint" },
python = { "ruff" },
terraform = { "trivy" },
yaml = { "yamllint", "trivy" },
["*"] = { "codespell" },
}