From d95c2ba1dc75307b154c870aa808f322debc6070 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 28 Mar 2024 21:32:37 +0100 Subject: [PATCH] feat(python): enable auto_brackets for python, since pyright and basedpyright dont support this natively --- lua/lazyvim/plugins/extras/lang/python.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/lazyvim/plugins/extras/lang/python.lua b/lua/lazyvim/plugins/extras/lang/python.lua index c2843503..bc1e28cf 100644 --- a/lua/lazyvim/plugins/extras/lang/python.lua +++ b/lua/lazyvim/plugins/extras/lang/python.lua @@ -108,4 +108,11 @@ return { end, keys = { { "cv", ":VenvSelect", desc = "Select VirtualEnv" } }, }, + { + "hrsh7th/nvim-cmp", + opts = function(_, opts) + opts.auto_brackets = opts.auto_brackets or {} + table.insert(opts.auto_brackets, "python") + end, + }, }