17 lines
453 B
Lua
17 lines
453 B
Lua
return {
|
||
-- basedpyright:pyright 的增强分支,类型检查更强。capabilities 由 nvim-lspconfig.lua 统一注入
|
||
settings = {
|
||
basedpyright = {
|
||
analysis = {
|
||
autoSearchPaths = true,
|
||
diagnosticMode = "openFilesOnly",
|
||
useLibraryCodeForTypes = true,
|
||
typeCheckingMode = "standard"
|
||
},
|
||
},
|
||
},
|
||
on_attach = function()
|
||
G.api.nvim_create_user_command('R', G.run_cmd('python3 %'), {})
|
||
end
|
||
}
|