Browse Source

comment toggle on bufread

christianchiarulli 4 năm trước cách đây
mục cha
commit
e9ea970099
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      lua/plugins.lua

+ 2 - 1
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