Skip to content

Commit

Permalink
pyright win ig?
Browse files Browse the repository at this point in the history
  • Loading branch information
bryant-the-coder committed Apr 12, 2024
1 parent 944eeb0 commit a003630
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions lua/modules/lsp/settings/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,15 @@ end
local pyright = {
on_attach = on_attach,
settings = {
pyright = {
disableOrganizeImports = false,
},
python = {
analysis = {
indexing = true,
typecheckingmode = "basic",
diagnosticmode = "openfilesonly",
-- diagnosticmode = "openfilesonly",
diagnosticmode = "workspace",
inlayhints = {
variabletypes = true,
functionreturntypes = true,
Expand All @@ -67,10 +71,31 @@ local pyright = {
},
},
},
--[[ settings = {
python = {
analysis = {
indexing = true,
typecheckingmode = "basic",
-- diagnosticmode = "openfilesonly",
diagnosticmode = "workspace",
inlayhints = {
variabletypes = true,
functionreturntypes = true,
},
stubpath = vim.fn.expand("$home/typings"),
diagnosticseverityoverrides = {
reportunusedimport = "information",
reportunusedfunction = "information",
reportunusedvariable = "information",
},
},
},
}, ]]
}

local jedi = {
on_attach = on_attach,
capabilities = capabilities,
settings = {
python = {
analysis = {
Expand Down Expand Up @@ -110,7 +135,7 @@ local jedi = {
},
}

local use_pyright = false
local use_pyright = true
if use_pyright then
require("lspconfig").pyright.setup(pyright)
else
Expand Down

0 comments on commit a003630

Please sign in to comment.