nvim: 添加所需要的程式語言,並把官方設定範例抄過來
This commit is contained in:
14
dot_config/nvim/exact_lua/lsp/exact_servers/pyright.lua
Normal file
14
dot_config/nvim/exact_lua/lsp/exact_servers/pyright.lua
Normal 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,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user