From 3ce2a3a03779241b477b821469559466d17b2c5c Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 16 Oct 2025 22:58:18 +0545 Subject: [PATCH] feat(comment): add typescriptreact filetype configuration --- lua/plugins/editor.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 12263c4..805cd11 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -38,6 +38,8 @@ return { extra = true, }, }) + ft = require('Comment.ft') + ft.set('typescriptreact', { '//%s', '{/*%s*/}' }) end, keys = { { 'gcc', mode = 'n', desc = 'Toggle comment line' }, @@ -47,8 +49,6 @@ return { { 'gb', mode = { 'n', 'o' }, desc = 'Toggle comment blockwise' }, { 'gb', mode = 'x', desc = 'Toggle comment blockwise (visual)' }, }, - - opts = {}, }, -- Todo Comments