vim.lsp.config("pylsp", { settings = { pylsp = { plugins = { pycodestyle = { ignore = { "W391", "E501" }, maxLineLength = 100, }, }, }, }, }) vim.lsp.config('basedpyright', { cmd = { 'basedpyright-langserver', '--stdio' }, filetypes = { 'python' }, root_markers = { 'pyproject.toml', 'setup.py', 'setup.cfg', 'requirements.txt', 'Pipfile', 'pyrightconfig.json', '.git', }, settings = { basedpyright = { analysis = { autoSearchPaths = true, useLibraryCodeForTypes = true, diagnosticMode = 'openFilesOnly', typeCheckingMode = 'basic', }, }, }, })