From d1003d98e9d7403fc431ffcc8f0f6bdb3a76c35b Mon Sep 17 00:00:00 2001 From: isandesh7 Date: Tue, 3 Sep 2024 11:01:46 -0700 Subject: [PATCH] Update linting.lua Fixes python linting to work when python venv is activated. https://gist.github.com/Norbiox/652befc91ca0f90014aec34eccee27b2 --- .config/nvim/lua/josean/plugins/linting.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/nvim/lua/josean/plugins/linting.lua b/.config/nvim/lua/josean/plugins/linting.lua index e9fea9b..25b3db4 100644 --- a/.config/nvim/lua/josean/plugins/linting.lua +++ b/.config/nvim/lua/josean/plugins/linting.lua @@ -25,5 +25,8 @@ return { vim.keymap.set("n", "l", function() lint.try_lint() end, { desc = "Trigger linting for current file" }) + + require('lint').linters.pylint.cmd = 'python' + require('lint').linters.pylint.args = {'-m', 'pylint', '-f', 'json'} end, }