feat(nvim): add run key to typescript files
This commit is contained in:
parent
65e0c15cca
commit
947bd51ec1
10
dots/.config/nvim/after/ftplugin/typescript.lua
Normal file
10
dots/.config/nvim/after/ftplugin/typescript.lua
Normal file
@ -0,0 +1,10 @@
|
||||
vim.keymap.set("n", "<leader>fr",
|
||||
function()
|
||||
vim.cmd.write()
|
||||
vim.cmd.terminal("deno run " .. vim.fn.expand("%"))
|
||||
end,
|
||||
{
|
||||
buffer = true,
|
||||
silent = true
|
||||
}
|
||||
)
|
Loading…
Reference in New Issue
Block a user