♻️ refactor(nvim): added keymap and changed some options in the regex and tsc extras

This commit is contained in:
Sergio Laín 2023-12-06 23:39:53 +01:00
parent 0d259afe49
commit d1c5a46433
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
3 changed files with 16 additions and 6 deletions

View file

@ -78,4 +78,3 @@
},
"version": 2
}

View file

@ -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",
},
},
}

View file

@ -7,12 +7,12 @@ return {
watch = true,
},
},
cmd = "TSC",
keys = {
{ "<leader>ct", "<cmd>TSC<cr>", desc = "Type Check" },
},
ft = {
"typescript",
"typescriptreact",
},
},
{