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.
This commit is contained in:
Finch 2025-06-10 11:11:14 -05:00
parent b44517f814
commit 246ba3d490

View File

@ -39,7 +39,7 @@ return {
-- 'jdtls', -- java -- 'jdtls', -- java
'lua_ls', 'lua_ls',
'marksman', -- markdown 'marksman', -- markdown
'pylint', -- 'pylint',
'pylsp', 'pylsp',
'rust_analyzer', 'rust_analyzer',
'ts_ls', -- Typscript 'ts_ls', -- Typscript
@ -83,10 +83,17 @@ return {
pylsp = { pylsp = {
plugins = { plugins = {
pycodestyle = { pycodestyle = {
enabled = false,
ignore = { ignore = {
'E501' -- Ignore line length pep8 warnings 'E501' -- Ignore line length pep8 warnings
}, },
maxLineLength = 120, maxLineLength = 120,
},
pylint = {
enabled = true,
args = {
'--disable=line-too-long'
},
} }
} }
} }
@ -115,8 +122,6 @@ return {
} }
}) })
vim.lsp.config("pyright", {})
vim.lsp.config("*", { vim.lsp.config("*", {
capabilities = capabilities, capabilities = capabilities,
on_attach = on_attach, on_attach = on_attach,