From 02987f401d0abeb5156332f2a5466bfc0f567f93 Mon Sep 17 00:00:00 2001 From: jdhao Date: Mon, 5 Jul 2021 23:16:38 +0800 Subject: [PATCH] Change auto-pairs activation event It seems that BufReadPost does not work sometimes. --- lua/plugins.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index be6a626..5360bee 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -112,7 +112,7 @@ require('packer').startup( use {'honza/vim-snippets', event = {'InsertEnter'}} -- Automatic insertion and deletion of a pair of characters - use {'jiangmiao/auto-pairs', event = {'BufReadPost'}} + use {'jiangmiao/auto-pairs', event = {'VimEnter'}} -- Comment plugin use 'tpope/vim-commentary'