nvim/lua/config/keymaps.lua

32 lines
940 B
Lua
Raw Normal View History

2024-06-17 15:22:39 +07:00
-- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here
require "config.neovide"
vim.keymap.set("t", "<c-d>", "<C-\\><C-n>", { silent = true, desc = "Exit Terminal Mode" })
vim.keymap.set(
"n",
"<leader>z",
2024-08-14 23:12:33 +07:00
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" }
)
2024-08-14 23:12:33 +07:00
vim.keymap.set("n", "<F5>", [[<cmd>silent !footclient --no-wait<cr>]], { desc = "Open New terminal" })