diff --git a/dots/.config/nvim/after/ftplugin/zsh.lua b/dots/.config/nvim/after/ftplugin/zsh.lua index 3bc5df49..4d812a5f 100644 --- a/dots/.config/nvim/after/ftplugin/zsh.lua +++ b/dots/.config/nvim/after/ftplugin/zsh.lua @@ -1,3 +1,9 @@ vim.opt_local.expandtab = false -vim.opt_local.expandtab = false -vim.opt_local.tabstop = 4 + +vim.keymap.set("n", "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", +})