Преглед на файлове

comment toggle on bufread

christianchiarulli преди 4 години
родител
ревизия
e9ea970099
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      lua/plugins.lua

+ 2 - 1
lua/plugins.lua

@@ -94,7 +94,8 @@ return require("packer").startup(function(use)
   -- Comments
   -- Comments
   use {
   use {
     "terrortylor/nvim-comment",
     "terrortylor/nvim-comment",
-    cmd = "CommentToggle",
+    event = "BufRead",
+    -- cmd = "CommentToggle",
     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