From 95397b6cbc9e9503b267f2a28abac5eef2fc11bf Mon Sep 17 00:00:00 2001 From: Juliano Barbosa Date: Fri, 23 Aug 2024 07:12:36 -0300 Subject: [PATCH] chore(lsp): update pyright settings --- init.lua | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 9657e7c7..8e1875d0 100644 --- a/init.lua +++ b/init.lua @@ -598,7 +598,26 @@ require('lazy').setup({ local servers = { -- clangd = {}, -- gopls = {}, - pyright = {}, + pyright = { + capabilities = { + textDocument = { + completion = { + completionItem = { + -- You can set the snippet support to true or false if you want to enable snippets + snippetSupport = true, + }, + }, + }, + }, + settings = { + python = { + analysis = { + autoSearchPaths = true, + useLibraryCodeForTypes = true, + }, + }, + }, + }, rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs --