From f1732edc922970f1532d4aa87df2d5462adbc637 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 24 May 2024 14:29:26 +0100 Subject: [nvim] Add autopairs --- home/.config/nvim/lua/custom/plugins/completion.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/.config/nvim/lua/custom/plugins/completion.lua b/home/.config/nvim/lua/custom/plugins/completion.lua index e122857..789a459 100644 --- a/home/.config/nvim/lua/custom/plugins/completion.lua +++ b/home/.config/nvim/lua/custom/plugins/completion.lua @@ -80,12 +80,16 @@ return { { name = "dap" }, }, }) + + local cmp_autopairs = require 'nvim-autopairs.completion.cmp' + cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done()) end, dependencies = { "hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-path", "hrsh7th/cmp-nvim-lsp-signature-help", "rcarriga/cmp-dap", + "windwp/nvim-autopairs", { "saadparwaiz1/cmp_luasnip", dependencies = { -- cgit v1.2.3-70-g09d2