浏览代码

new comment lazyload event

christianchiarulli 4 年之前
父节点
当前提交
83a77ac5cb
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      lua/plugins.lua

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