From 947bd51ec18938991f4013a6c505bb29ffd762c6 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 14 Oct 2023 18:03:29 -0500 Subject: [PATCH] feat(nvim): add run key to typescript files --- dots/.config/nvim/after/ftplugin/typescript.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 dots/.config/nvim/after/ftplugin/typescript.lua diff --git a/dots/.config/nvim/after/ftplugin/typescript.lua b/dots/.config/nvim/after/ftplugin/typescript.lua new file mode 100644 index 00000000..f1e4c8d4 --- /dev/null +++ b/dots/.config/nvim/after/ftplugin/typescript.lua @@ -0,0 +1,10 @@ +vim.keymap.set("n", "fr", + function() + vim.cmd.write() + vim.cmd.terminal("deno run " .. vim.fn.expand("%")) + end, + { + buffer = true, + silent = true + } +)