From d1c5a46433b700356b103a9be38d83f8ae09e428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Wed, 6 Dec 2023 23:39:53 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(nvim):=20added=20?= =?UTF-8?q?keymap=20and=20changed=20some=20options=20in=20the=20regex=20an?= =?UTF-8?q?d=20tsc=20extras?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/nvim/lazyvim.json | 3 +-- .../nvim/lua/plugins/extras/editor/regex.lua | 17 ++++++++++++++--- .../extras/lang/web/typescript-extended.lua | 2 +- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.config/nvim/lazyvim.json b/.config/nvim/lazyvim.json index 4e961d45..e7e5c630 100644 --- a/.config/nvim/lazyvim.json +++ b/.config/nvim/lazyvim.json @@ -77,5 +77,4 @@ "NEWS.md": "2123" }, "version": 2 -} - +} \ No newline at end of file diff --git a/.config/nvim/lua/plugins/extras/editor/regex.lua b/.config/nvim/lua/plugins/extras/editor/regex.lua index 7e9c0d40..589d2959 100644 --- a/.config/nvim/lua/plugins/extras/editor/regex.lua +++ b/.config/nvim/lua/plugins/extras/editor/regex.lua @@ -1,8 +1,19 @@ return { "bennypowers/nvim-regexplainer", - opts = {}, - event = "BufReadPost", - requires = { + dependencies = { "MunifTanjim/nui.nvim", }, + opts = { + auto = "true", + }, + -- stylua: ignore + keys = { + { + "gR", + function() + require("regexplainer").show() + end, + desc = "Regexplainer", + }, + }, } diff --git a/.config/nvim/lua/plugins/extras/lang/web/typescript-extended.lua b/.config/nvim/lua/plugins/extras/lang/web/typescript-extended.lua index c7e57274..65df2974 100644 --- a/.config/nvim/lua/plugins/extras/lang/web/typescript-extended.lua +++ b/.config/nvim/lua/plugins/extras/lang/web/typescript-extended.lua @@ -7,12 +7,12 @@ return { watch = true, }, }, - cmd = "TSC", keys = { { "ct", "TSC", desc = "Type Check" }, }, ft = { "typescript", + "typescriptreact", }, }, {