From 978d2a9005148c292d0ebef94b4322d44bd590ce Mon Sep 17 00:00:00 2001 From: jannawro Date: Wed, 22 Nov 2023 15:35:38 +0100 Subject: [PATCH] put pyright settings --- init.lua | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 0248134c..e05a86f5 100644 --- a/init.lua +++ b/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 = {},