mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
chore(nvim): update key map
This commit is contained in:
@@ -1,63 +1,63 @@
|
|||||||
-- Getting you where you want with the fewest keystrokes
|
-- Getting you where you want with the fewest keystrokes
|
||||||
-- https://github.com/ThePrimeagen/harpoon
|
-- https://github.com/ThePrimeagen/harpoon
|
||||||
return {
|
return {
|
||||||
"ThePrimeagen/harpoon",
|
"ThePrimeagen/harpoon",
|
||||||
branch = "harpoon2",
|
branch = "harpoon2",
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"<leader>a",
|
"<leader>'",
|
||||||
function()
|
function()
|
||||||
require("harpoon"):list():add()
|
require("harpoon"):list():add()
|
||||||
end,
|
end,
|
||||||
desc = "Harpoon Add File",
|
desc = "Harpoon Add File",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>;",
|
"<leader>;",
|
||||||
function()
|
function()
|
||||||
local harpoon = require("harpoon")
|
local harpoon = require("harpoon")
|
||||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||||
end,
|
end,
|
||||||
desc = "Harpoon Quickmenu",
|
desc = "Harpoon Quickmenu",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>1",
|
"<leader>1",
|
||||||
function()
|
function()
|
||||||
require("harpoon"):list():select(1)
|
require("harpoon"):list():select(1)
|
||||||
end,
|
end,
|
||||||
desc = "Harpoon Buffer 1",
|
desc = "Harpoon Buffer 1",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>2",
|
"<leader>2",
|
||||||
function()
|
function()
|
||||||
require("harpoon"):list():select(2)
|
require("harpoon"):list():select(2)
|
||||||
end,
|
end,
|
||||||
desc = "Harpoon Buffer 2",
|
desc = "Harpoon Buffer 2",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>3",
|
"<leader>3",
|
||||||
function()
|
function()
|
||||||
require("harpoon"):list():select(3)
|
require("harpoon"):list():select(3)
|
||||||
end,
|
end,
|
||||||
desc = "Harpoon Buffer 3",
|
desc = "Harpoon Buffer 3",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>4",
|
"<leader>4",
|
||||||
function()
|
function()
|
||||||
require("harpoon"):list():select(4)
|
require("harpoon"):list():select(4)
|
||||||
end,
|
end,
|
||||||
desc = "Harpoon Buffer 4",
|
desc = "Harpoon Buffer 4",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>5",
|
"<leader>5",
|
||||||
function()
|
function()
|
||||||
require("harpoon"):list():select(5)
|
require("harpoon"):list():select(5)
|
||||||
end,
|
end,
|
||||||
desc = "Harpoon Buffer 5",
|
desc = "Harpoon Buffer 5",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
menu = {
|
menu = {
|
||||||
width = vim.api.nvim_win_get_width(0) - 4,
|
width = vim.api.nvim_win_get_width(0) - 4,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user