feat(nvim): add keybind to run shell files with bash
This commit is contained in:
parent
a851329f67
commit
e035fd1288
@ -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"
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user