feat(nvim): add run key for zsh filetypes
This commit is contained in:
parent
37ed511d02
commit
900cd0f848
@ -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",
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user