refactor(config): replace mk and scratch terminals with yazi integration

This commit is contained in:
Prad Nukala committed 2026-06-28 13:54:50 -04:00
1 parent 6d7b286e74
commit 1b2e71e34f
2 files changed
+7 -16

No files matched your search

+6 -16
View File
@@ -44,17 +44,6 @@ function M.setup()
end,
}
-- Mk (make) terminal
local mk = Terminal:new {
cmd = "task",
hidden = true,
direction = "horizontal",
on_open = function(term)
vim.cmd "startinsert!"
vim.api.nvim_buf_set_keymap(term.bufnr, "n", "q", "<cmd>close<CR>", { noremap = true, silent = true })
end,
}
-- Mk (make) terminal
local lazygit = Terminal:new {
cmd = "lazygit",
@@ -76,23 +65,24 @@ function M.setup()
end,
}
-- Scratch terminal
local scratch = Terminal:new {
cmd = "zsh",
-- yazi terminal
local yazi = Terminal:new {
cmd = "yazi",
hidden = true,
direction = "horizontal",
direction = "float",
on_open = function(term)
vim.cmd "startinsert!"
vim.api.nvim_buf_set_keymap(term.bufnr, "n", "q", "<cmd>close<CR>", { noremap = true, silent = true })
end,
}
-- Export toggle functions to module instead of global namespace
M.scooter_toggle = function() scooter:toggle() end
M.mk_toggle = function() mk:toggle() end
M.lazygit_toggle = function() lazygit:toggle() end
M.lazydocker_toggle = function() lazydocker:toggle() end
M.smartCommit_toggle = function() smartCommit:toggle() end
M.scratch_toggle = function() scratch:toggle() end
M.yazi_toggle = function() yazi:toggle() end
end
return M