From 83a77ac5cb9fc5580b65c914c368882408bbc13a Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Wed, 7 Jul 2021 22:03:40 -0400 Subject: new comment lazyload event --- lua/plugins.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/plugins.lua b/lua/plugins.lua index 9f49e69d..724a7715 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -104,8 +104,7 @@ return require("packer").startup(function(use) -- Comments use { "terrortylor/nvim-comment", - event = "BufRead", - -- cmd = "CommentToggle", + event = "BufWinEnter", config = function() local status_ok, nvim_comment = pcall(require, "nvim_comment") if not status_ok then -- cgit v1.2.3