From 246ba3d490026ed6e7d191b4f194b80b72478be1 Mon Sep 17 00:00:00 2001 From: Joshua Finch Date: Tue, 10 Jun 2025 11:11:14 -0500 Subject: [PATCH] feat: Adding in the pylint plugin for pylsp rather than trying to add it through other means. Adding the ignore line for ignoring lines that are "too long", as well as providing a placeholder for future edits to ignoring other linting feedback. --- nvim/lua/plugins/mason.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nvim/lua/plugins/mason.lua b/nvim/lua/plugins/mason.lua index 75efb24..2d16352 100644 --- a/nvim/lua/plugins/mason.lua +++ b/nvim/lua/plugins/mason.lua @@ -39,7 +39,7 @@ return { -- 'jdtls', -- java 'lua_ls', 'marksman', -- markdown - 'pylint', + -- 'pylint', 'pylsp', 'rust_analyzer', 'ts_ls', -- Typscript @@ -83,10 +83,17 @@ return { pylsp = { plugins = { pycodestyle = { + enabled = false, ignore = { 'E501' -- Ignore line length pep8 warnings }, maxLineLength = 120, + }, + pylint = { + enabled = true, + args = { + '--disable=line-too-long' + }, } } } @@ -115,8 +122,6 @@ return { } }) - vim.lsp.config("pyright", {}) - vim.lsp.config("*", { capabilities = capabilities, on_attach = on_attach,