28 lines
895 B
Lua
28 lines
895 B
Lua
---@type MappingsTable
|
|
local M = {}
|
|
|
|
M.general = {
|
|
n = {
|
|
-- harpoon
|
|
["H"] = {function() require("harpoon.ui").toggle_quick_menu() end, "Open Harpoon" },
|
|
["<leader>ha"] = {function() require("harpoon.mark").add_file() end, "Add file to Harpoon"},
|
|
["<leader>hs"] = {function() require("harpoon.ui").nav_file(1) end, "Switch to file 1"},
|
|
["<leader>hd"] = {function() require("harpoon.ui").nav_file(2) end, "Switch to file 2"},
|
|
["<leader>hf"] = {function() require("harpoon.ui").nav_file(3) end, "Switch to file 3"},
|
|
["<leader>hg"] = {function() require("harpoon.ui").nav_file(4) end, "Switch to file 4"},
|
|
|
|
-- navigation
|
|
["<C-d>"] = {"<C-d>zz", "1/2 page down"},
|
|
["<C-u>"] = {"<C-u>zz", "1/2 page up" },
|
|
["n"] = {"nzz", "find next"},
|
|
["N"] = {"Nzz", "find prev"},
|
|
|
|
["Zm"] = {":ZenMode<CR>", "Enter ZenMode"}
|
|
|
|
},
|
|
}
|
|
|
|
-- more keybinds!
|
|
|
|
return M
|