feat(nvim): add run key for zsh filetypes

This commit is contained in:
Price Hiller 2024-02-22 17:38:12 -06:00
parent 37ed511d02
commit 900cd0f848
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -1,3 +1,9 @@
vim.opt_local.expandtab = false
vim.opt_local.expandtab = false
vim.opt_local.tabstop = 4
vim.keymap.set("n", "<leader>fr", function()
vim.cmd.write()
require("toggleterm").exec("zsh " .. vim.api.nvim_buf_get_name(0))
end, {
buffer = true,
desc = "ZSH: Save and Run Current Buffer",
})