Explorar o código

new comment lazyload event

christianchiarulli %!s(int64=4) %!d(string=hai) anos
pai
achega
83a77ac5cb
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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