nvim-config11/lsp/pyright.lua
2025-03-27 11:26:44 +00:00

16 lines
389 B
Lua

return {
cmd = { "pyright-langserver", "--stdio" },
filetypes = { "python" },
root_markers = { "pyproject.toml" },
settings = {
python = {
analysis = {
autoSearchPaths = true,
diagnosticMode = "openFilesOnly",
useLibraryCodeForTypes = true
}
}
},
single_file_support = true
}