feat(python): enable auto_brackets for python, since pyright and basedpyright dont support this natively

This commit is contained in:
Folke Lemaitre
2024-03-28 21:32:37 +01:00
parent bf8ce8076e
commit d95c2ba1dc

View File

@ -108,4 +108,11 @@ return {
end,
keys = { { "<leader>cv", "<cmd>:VenvSelect<cr>", desc = "Select VirtualEnv" } },
},
{
"hrsh7th/nvim-cmp",
opts = function(_, opts)
opts.auto_brackets = opts.auto_brackets or {}
table.insert(opts.auto_brackets, "python")
end,
},
}