feat(nvim): add keybind to run shell files with bash

This commit is contained in:
Price Hiller 2023-12-26 17:18:36 -06:00
parent a851329f67
commit e035fd1288
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -1 +1,9 @@
vim.opt_local.expandtab = false
vim.keymap.set("n", "<leader>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"
})