nvim.git

nvim

~
git clone https://github.com/debuman/nvim.git

lua/josean/plugins/comment.lua (512B)

      1 return {
      2   "numToStr/Comment.nvim",
      3   event = { "BufReadPre", "BufNewFile" },
      4   dependencies = {
      5     "JoosepAlviste/nvim-ts-context-commentstring",
      6   },
      7   config = function()
      8     -- import comment plugin safely
      9     local comment = require("Comment")
     10 
     11     local ts_context_commentstring = require("ts_context_commentstring.integrations.comment_nvim")
     12 
     13     -- enable comment
     14     comment.setup({
     15       -- for commenting tsx and jsx files
     16       pre_hook = ts_context_commentstring.create_pre_hook(),
     17     })
     18   end,
     19 }