Skip to content

Commit

Permalink
feat: add default pyright config
Browse files Browse the repository at this point in the history
  • Loading branch information
jczhang02 committed Jul 19, 2024
1 parent 7440f81 commit b44e2de
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions lua/modules/configs/completion/servers/pyright.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
return {
cmd = { "delance-langserver", "--stdio" },
-- filetypes = { "python" },
settings = {
pylance = {
disableOrganizeImports = true,
disableTaggedHints = true,
},
python = {
pythonPath = vim.fn.exepath("python"),
analysis = {
autoImportCompletions = true,
autoSearchPaths = true,
diagnosticMode = "workspace", -- openFilesOnly, workspace
typeCheckingMode = "basic", -- off, basic, strict
useLibraryCodeForTypes = true,
extraPaths = {
"src",
},
diagnosticSeverityOverrides = {
reportGeneralTypeIssues = "none",
reportUnboundVariable = false,
strictParameterNoneValue = false,
},
stubPath = vim.fn.stdpath("data") .. "/site/lazy/python-type-stubs",
inlayHints = {
functionReturnTypes = true,
pytestParameters = true,
variableTypes = true,
callArgumentNames = "partial",
},
},
},
},
single_file_support = true,
}

0 comments on commit b44e2de

Please sign in to comment.