diff --git a/dots/.config/nvim/after/ftplugin/sh.lua b/dots/.config/nvim/after/ftplugin/sh.lua index 3436b9cc..dd969e74 100644 --- a/dots/.config/nvim/after/ftplugin/sh.lua +++ b/dots/.config/nvim/after/ftplugin/sh.lua @@ -1 +1,9 @@ vim.opt_local.expandtab = false + +vim.keymap.set("n", "fr", function() + vim.cmd.write() + require("toggleterm").exec("bash " .. vim.api.nvim_buf_get_name(0)) +end, { + buffer = true, + desc = "Bash: Save and Run Current Buffer" +})