Files
dotfiles/nvim/after/lsp/pylsp.lua
2026-08-12 09:46:56 -05:00

32 lines
738 B
Lua

return {
cmd = { 'pylsp' },
filetypes = { 'python' },
root_markers = {
'pyproject.toml',
'setup.py',
'setup.cfg',
'requirements.txt',
'Pipfile',
'.git',
},
settings = {
pylsp = {
plugins = {
pycodestyle = {
enabled = true,
ignore = {
'E501' -- line-too-long
},
maxLineLength = 120,
},
pylint = {
enabled = true,
args = {
'--disable=line-too-long,import-error',
},
}
}
}
}
}