put pyright settings

This commit is contained in:
jannawro 2023-11-22 15:35:38 +01:00
parent d2215c17f1
commit 978d2a9005
1 changed files with 16 additions and 1 deletions

View File

@ -509,7 +509,22 @@ require('mason-lspconfig').setup()
-- define the property 'filetypes' to the map in question. -- define the property 'filetypes' to the map in question.
local servers = { local servers = {
gopls = { 'go' }, gopls = { 'go' },
pyright = { 'py' }, pyright = {
filetypes = { 'py' },
settings = {
pyright = {
autoImportCompletion = true,
},
python = {
analysis = {
autoSearchPaths = true,
diagnosticMode = 'openFilesOnly',
useLibraryCodeForTypes = true,
typeCheckingMode = 'off'
}
}
}
},
terraformls = { 'tf', 'tfvars', 'tfvars.tpl' }, terraformls = { 'tf', 'tfvars', 'tfvars.tpl' },
tflint = { 'tf', 'tfvars', 'tfvars.tpl' }, tflint = { 'tf', 'tfvars', 'tfvars.tpl' },
-- rust_analyzer = {}, -- rust_analyzer = {},