mirror of
https://github.com/josean-dev/dev-environment-files.git
synced 2025-01-09 17:51:20 +01:00
Update linting.lua
Fixes python linting to work when python venv is activated. https://gist.github.com/Norbiox/652befc91ca0f90014aec34eccee27b2
This commit is contained in:
parent
cb670e8890
commit
d1003d98e9
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue