From d9122f1e65f15e1a210c841e3ecdb9d8c0720f65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Tue, 26 Dec 2023 20:48:35 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20add=20ft=20to=20tsc?= =?UTF-8?q?=20and=20live=20server=20keys?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit didnt know you could do that, thats amazing! --- .config/nvim/lua/plugins/extras/editor/live-server.lua | 2 +- .../nvim/lua/plugins/extras/lang/web/typescript-extended.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/nvim/lua/plugins/extras/editor/live-server.lua b/.config/nvim/lua/plugins/extras/editor/live-server.lua index f201a7db..886bc958 100644 --- a/.config/nvim/lua/plugins/extras/editor/live-server.lua +++ b/.config/nvim/lua/plugins/extras/editor/live-server.lua @@ -5,6 +5,6 @@ return { end, cmd = { "LiveServer", "LiveServerStart", "LiveServerStop" }, keys = { - { "cV", "LiveServer", desc = "Live Server" }, + { "cV", ft = "html", "LiveServer", desc = "Live Server" }, }, } 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 2a4dc279..ca076681 100644 --- a/.config/nvim/lua/plugins/extras/lang/web/typescript-extended.lua +++ b/.config/nvim/lua/plugins/extras/lang/web/typescript-extended.lua @@ -9,7 +9,7 @@ return { }, }, keys = { - { "ct", "TSC", desc = "Type Check" }, + { "ct", ft = { "typescript", "typescriptreact" }, "TSC", desc = "Type Check" }, }, ft = { "typescript",