feat(nvim): add ft to tsc and live server keys

didnt know you could do that, thats amazing!
This commit is contained in:
Sergio Laín 2023-12-26 20:48:35 +01:00
parent 4a5a42e91e
commit d9122f1e65
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
2 changed files with 2 additions and 2 deletions

View file

@ -5,6 +5,6 @@ return {
end, end,
cmd = { "LiveServer", "LiveServerStart", "LiveServerStop" }, cmd = { "LiveServer", "LiveServerStart", "LiveServerStop" },
keys = { keys = {
{ "<leader>cV", "<cmd>LiveServer<CR>", desc = "Live Server" }, { "<leader>cV", ft = "html", "<cmd>LiveServer<CR>", desc = "Live Server" },
}, },
} }

View file

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