dotfiles/nvim/.config/nvim/lsp/pyright.lua

21 lines
465 B
Lua

return {
cmd = {
'pyright-langserver', '--stdio'
},
settings = {
python = {
analysis = {
typeCheckingMode = "basic", -- or "strict", "off"
autoSearchPaths = true,
useLibraryCodeForTypes = true,
},
},
},
root_markers = {
'pyproject.toml', 'setup.py', 'setup.cfg', 'requirements.txt', '.git'
},
filetypes = {
'python'
},
}