Forráskód Böngészése

new comment lazyload event

christianchiarulli 4 éve
szülő
commit
83a77ac5cb
1 módosított fájl, 1 hozzáadás és 2 törlés
  1. 1 2
      lua/plugins.lua

+ 1 - 2
lua/plugins.lua

@@ -104,8 +104,7 @@ return require("packer").startup(function(use)
   -- Comments
   -- Comments
   use {
   use {
     "terrortylor/nvim-comment",
     "terrortylor/nvim-comment",
-    event = "BufRead",
-    -- cmd = "CommentToggle",
+    event = "BufWinEnter",
     config = function()
     config = function()
       local status_ok, nvim_comment = pcall(require, "nvim_comment")
       local status_ok, nvim_comment = pcall(require, "nvim_comment")
       if not status_ok then
       if not status_ok then