configure python

This commit is contained in:
Ray Elliott 2025-12-07 23:12:35 +00:00
commit b9d9f7e264
9 changed files with 96 additions and 12 deletions

View file

@ -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" }, {