configure python
This commit is contained in:
parent
b045d7c627
commit
b9d9f7e264
9 changed files with 96 additions and 12 deletions
|
|
@ -15,6 +15,7 @@ return {
|
|||
typescriptreact = { "eslint_d" },
|
||||
markdown = { "markdownlint" },
|
||||
php = { "phpcs" },
|
||||
python = { "ruff" },
|
||||
}
|
||||
|
||||
-- Helper: Find project-local executable, fallback to global
|
||||
|
|
@ -68,6 +69,9 @@ return {
|
|||
-- Configure markdownlint
|
||||
lint.linters.markdownlint.cmd = find_executable({ "markdownlint" }) or "markdownlint"
|
||||
|
||||
-- Configure ruff for Python
|
||||
lint.linters.ruff.cmd = find_executable({ "ruff" }) or "ruff"
|
||||
|
||||
-- Auto-lint on these events
|
||||
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue