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-23 06:34:05 +00:00
|
|
|
local map = vim.keymap.set
|
|
|
|
map({ "i", "x", "n", "s" }, "<f1>", function()
|
2024-04-13 16:58:22 +00:00
|
|
|
require("harpoon"):list():select(1)
|
|
|
|
end, { desc = "Harpoon file 1" })
|
|
|
|
|
2024-04-23 06:34:05 +00:00
|
|
|
map({ "i", "x", "n", "s" }, "<f2>", function()
|
2024-04-13 16:58:22 +00:00
|
|
|
require("harpoon"):list():select(2)
|
|
|
|
end, { desc = "Harpoon file 2" })
|
|
|
|
|
2024-04-23 06:34:05 +00:00
|
|
|
map({ "i", "x", "n", "s" }, "<f3>", function()
|
2024-04-13 16:58:22 +00:00
|
|
|
require("harpoon"):list():select(3)
|
|
|
|
end, { desc = "Harpoon file 3" })
|
|
|
|
|
2024-04-23 06:34:05 +00:00
|
|
|
map({ "i", "x", "n", "s" }, "<f4>", function()
|
2024-04-13 16:58:22 +00:00
|
|
|
require("harpoon"):list():select(4)
|
|
|
|
end, { desc = "Harpoon file 4" })
|
2024-04-23 06:34:05 +00:00
|
|
|
|
|
|
|
map({ "i", "x", "n", "s" }, "<f5>", function()
|
|
|
|
require("harpoon"):list():select(5)
|
|
|
|
end, { desc = "Harpoon file 5" })
|
|
|
|
|
|
|
|
map({ "i", "x", "n", "s" }, "<f6>", function()
|
|
|
|
require("harpoon"):list():select(6)
|
|
|
|
end, { desc = "Harpoon file 6" })
|
|
|
|
|
|
|
|
map({ "i", "x", "n", "s" }, "<f7>", function()
|
|
|
|
require("harpoon"):list():select(7)
|
|
|
|
end, { desc = "Harpoon file 7" })
|
|
|
|
|
|
|
|
map({ "i", "x", "n", "s" }, "<f8>", function()
|
|
|
|
require("harpoon"):list():select(8)
|
|
|
|
end, { desc = "Harpoon file 8" })
|
|
|
|
|
|
|
|
-- Move Lines
|
|
|
|
map("n", "<A-down>", "<cmd>m .+1<cr>==", { desc = "Move Down" })
|
|
|
|
map("n", "<A-up>", "<cmd>m .-2<cr>==", { desc = "Move Up" })
|
|
|
|
map("i", "<A-down>", "<esc><cmd>m .+1<cr>==gi", { desc = "Move Down" })
|
|
|
|
map("i", "<A-up>", "<esc><cmd>m .-2<cr>==gi", { desc = "Move Up" })
|
|
|
|
map("v", "<A-down>", ":m '>+1<cr>gv=gv", { desc = "Move Down" })
|
|
|
|
map("v", "<A-up>", ":m '<-2<cr>gv=gv", { desc = "Move Up" })
|