Files
keycodex/lsp/python.lua
T

18 lines
474 B
Lua

return {
cmd = { 'pyright-langserver', '--stdio' },
filetypes = { 'py', 'python' },
root_markers = { 'pyproject.toml', 'setup.py', 'setup.cfg', 'requirements.txt' },
settings = {
python = {
analysis = {
-- autoSearchPaths = true,
diagnosticMode = 'openFilesOnly',
-- useLibraryCodeForTypes = true,
},
},
},
init_options = {
hostInfo = 'neovim',
},
}