✨ feat(nvim): add ft to tsc and live server keys
didnt know you could do that, thats amazing!
This commit is contained in:
parent
4a5a42e91e
commit
d9122f1e65
2 changed files with 2 additions and 2 deletions
|
@ -5,6 +5,6 @@ return {
|
|||
end,
|
||||
cmd = { "LiveServer", "LiveServerStart", "LiveServerStop" },
|
||||
keys = {
|
||||
{ "<leader>cV", "<cmd>LiveServer<CR>", desc = "Live Server" },
|
||||
{ "<leader>cV", ft = "html", "<cmd>LiveServer<CR>", desc = "Live Server" },
|
||||
},
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@ return {
|
|||
},
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>ct", "<cmd>TSC<cr>", desc = "Type Check" },
|
||||
{ "<leader>ct", ft = { "typescript", "typescriptreact" }, "<cmd>TSC<cr>", desc = "Type Check" },
|
||||
},
|
||||
ft = {
|
||||
"typescript",
|
||||
|
|
Loading…
Add table
Reference in a new issue