term: favor foot over toggleterm
This commit is contained in:
parent
0321fa4d2b
commit
9d925637e8
|
@ -9,6 +9,23 @@ vim.keymap.set("t", "<c-d>", "<C-\\><C-n>", { silent = true, desc = "Exit Termin
|
|||
vim.keymap.set(
|
||||
"n",
|
||||
"<leader>z",
|
||||
"<cmd>silent !wezterm start --class lazygit --cwd . -- lazygit<cr>",
|
||||
function()
|
||||
local cwd = vim.fn.expand "%:p:h"
|
||||
vim.system {
|
||||
"hyprctl",
|
||||
"dispatch",
|
||||
"exec",
|
||||
"--",
|
||||
"foot",
|
||||
"--app-id=lazygit",
|
||||
"--title=lazygit",
|
||||
"--working-directory=" .. cwd,
|
||||
"--",
|
||||
"lazygit",
|
||||
}
|
||||
end,
|
||||
-- [[<cmd>silent !foot --app-id=lazygit --working-directory=. -- lazygit<cr>]],
|
||||
{ desc = "Open Lazygit" }
|
||||
)
|
||||
|
||||
vim.keymap.set("n", "<F5>", [[<cmd>silent !footclient --no-wait<cr>]], { desc = "Open New terminal" })
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
return {
|
||||
enabled = false,
|
||||
"akinsho/toggleterm.nvim",
|
||||
keys = {
|
||||
{ "<F5>", "Open Toggleterm" },
|
||||
|
|
Loading…
Reference in a new issue