Переглянути джерело

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