From e9ea970099387d1f3582f80478f2f7a3ce835954 Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Wed, 7 Jul 2021 00:05:30 -0400 Subject: comment toggle on bufread --- lua/plugins.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 8793bff9..25f968c4 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -94,7 +94,8 @@ return require("packer").startup(function(use) -- Comments use { "terrortylor/nvim-comment", - cmd = "CommentToggle", + event = "BufRead", + -- cmd = "CommentToggle", config = function() local status_ok, nvim_comment = pcall(require, "nvim_comment") if not status_ok then -- cgit v1.2.3