summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/plugins.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua
index 0db3eaee..89e63b36 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