nvim: 添加所需要的程式語言,並把官方設定範例抄過來

This commit is contained in:
2025-05-05 19:55:44 +08:00
parent 7594bbc120
commit f0a8c49074
5 changed files with 58 additions and 8 deletions

View File

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