From c545c5ce206718346ec6cd81030679d1fc9ea4a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20=C5=A0ef=C4=8D=C3=ADk?= Date: Mon, 12 May 2025 12:36:39 +0200 Subject: [PATCH] Create autopairs.lua --- lua/kickstart/plugins/autopairs.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 lua/kickstart/plugins/autopairs.lua diff --git a/lua/kickstart/plugins/autopairs.lua b/lua/kickstart/plugins/autopairs.lua new file mode 100644 index 00000000..147e5064 --- /dev/null +++ b/lua/kickstart/plugins/autopairs.lua @@ -0,0 +1,16 @@ +-- autopairs +-- https://github.com/windwp/nvim-autopairs + +return { + 'windwp/nvim-autopairs', + event = 'InsertEnter', + -- Optional dependency + dependencies = { 'hrsh7th/nvim-cmp' }, + config = function() + require('nvim-autopairs').setup {} + -- If you want to automatically add `(` after selecting a function or method + local cmp_autopairs = require 'nvim-autopairs.completion.cmp' + local cmp = require 'cmp' + cmp.event:on('confirm_done', cmp_autopairs.on_confirm_done()) + end, + }