put pyright settings
This commit is contained in:
parent
d2215c17f1
commit
978d2a9005
17
init.lua
17
init.lua
|
@ -509,7 +509,22 @@ require('mason-lspconfig').setup()
|
|||
-- define the property 'filetypes' to the map in question.
|
||||
local servers = {
|
||||
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' },
|
||||
tflint = { 'tf', 'tfvars', 'tfvars.tpl' },
|
||||
-- rust_analyzer = {},
|
||||
|
|
Loading…
Reference in New Issue