Update linting.lua

Fixes python linting to work when python venv is activated.

https://gist.github.com/Norbiox/652befc91ca0f90014aec34eccee27b2
This commit is contained in:
isandesh7 2024-09-03 11:01:46 -07:00 committed by GitHub
parent cb670e8890
commit d1003d98e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,5 +25,8 @@ return {
vim.keymap.set("n", "<leader>l", function() vim.keymap.set("n", "<leader>l", function()
lint.try_lint() lint.try_lint()
end, { desc = "Trigger linting for current file" }) end, { desc = "Trigger linting for current file" })
require('lint').linters.pylint.cmd = 'python'
require('lint').linters.pylint.args = {'-m', 'pylint', '-f', 'json'}
end, end,
} }