From e8c91be72c9690230e09bc1c1d23ff0cba520a5a Mon Sep 17 00:00:00 2001 From: Taken Date: Sun, 17 Nov 2024 18:21:12 +0100 Subject: [PATCH] Added tsx syntax support --- lua/taken/plugins/comment.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/taken/plugins/comment.lua b/lua/taken/plugins/comment.lua index 7ef1e6f..6f3028a 100644 --- a/lua/taken/plugins/comment.lua +++ b/lua/taken/plugins/comment.lua @@ -1,13 +1,13 @@ --- @type LazyPluginSpec return { "numToStr/Comment.nvim", + dependencies = "JoosepAlviste/nvim-ts-context-commentstring", keys = { "gcc", "gbc", { "gc", mode = "v" }, { "gb", mode = "v" }, "gcO", "gco", "gcA" }, config = function() local comment = require("Comment") comment.setup({ padding = true, sticky = true, - ignore = nil, toggler = { line = "gcc", block = "gbc", @@ -25,8 +25,7 @@ return { basic = true, extra = true, }, - pre_hook = nil, - post_hook = nil, + pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(), }) end, }