nvim/lua/lsp/basedpyright.lua

17 lines
453 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

return {
-- basedpyrightpyright 的增强分支类型检查更强。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
}