.dotfiles/home/.config/nvim/lua/lsp/servers/pyright.lua
Martin Larsson 472208ea95 Setup debug adapters for codelldb, debugpy and gopls. Also remove
nvim-dap-profiles :( Apparently there is a way to do the same thing
using launch.json built into dap, much better than my solution.
2025-01-11 19:08:40 +01:00

21 lines
497 B
Lua

return {
cmd = { "pyright-langserver", "--stdio" },
filetypes = { "python", "py" },
root_markers = {
"pyproject.toml",
"setup.py",
"setup.cfg",
"requirements.txt",
"Pipfile",
"pyrightconfig.json",
},
settings = {
python = {
analysis = {
autoSearchPaths = true,
useLibraryCodeForTypes = true,
diagnosticMode = "openFilesOnly",
},
},
},
}