Skip to content

Commit

Permalink
feat(python): enable auto_brackets for python, since pyright and base…
Browse files Browse the repository at this point in the history
…dpyright dont support this natively
  • Loading branch information
folke committed Mar 28, 2024
1 parent bf8ce80 commit d95c2ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/lazyvim/plugins/extras/lang/python.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}

0 comments on commit d95c2ba

Please sign in to comment.