nixos-config/dotfiles/nvim/lua/config/keymaps.lua

19 lines
732 B
Lua
Raw Normal View History

2023-12-21 13:02:24 +00:00
-- Keymaps are automatically loaded on the VeryLazy event
2024-04-13 16:58:22 +00:00
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
2023-12-21 13:02:24 +00:00
-- Add any additional keymaps here
2024-04-13 16:58:22 +00:00
vim.keymap.set({ "i", "x", "n", "s" }, "<f1>", function()
require("harpoon"):list():select(1)
end, { desc = "Harpoon file 1" })
vim.keymap.set({ "i", "x", "n", "s" }, "<f2>", function()
require("harpoon"):list():select(2)
end, { desc = "Harpoon file 2" })
vim.keymap.set({ "i", "x", "n", "s" }, "<f3>", function()
require("harpoon"):list():select(3)
end, { desc = "Harpoon file 3" })
vim.keymap.set({ "i", "x", "n", "s" }, "<f4>", function()
require("harpoon"):list():select(4)
end, { desc = "Harpoon file 4" })