mirror of https://github.com/LazyVim/starter
Keymaps
parent
b4cb757aa9
commit
b3b800c6af
|
@ -0,0 +1,19 @@
|
||||||
|
return {
|
||||||
|
"ThePrimeagen/harpoon",
|
||||||
|
config = function()
|
||||||
|
local ui = require("harpoon.ui")
|
||||||
|
|
||||||
|
require("harpoon").setup({
|
||||||
|
menu = {
|
||||||
|
width = vim.api.nvim_win_get_width(0) - 24,
|
||||||
|
},
|
||||||
|
global_settings = {
|
||||||
|
mark_branch = true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.keymap.set("n", "<C-c>", function()
|
||||||
|
ui.nav_next()
|
||||||
|
end, { desc = "Navigate next" })
|
||||||
|
end,
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
return {
|
||||||
|
"mrjones2014/legendary.nvim",
|
||||||
|
dependencies = "stevearc/dressing.nvim",
|
||||||
|
keys = {
|
||||||
|
{ "<leader>,", vim.cmd.Legendary, desc = "Legendary" },
|
||||||
|
},
|
||||||
|
config = {
|
||||||
|
which_key = { auto_register = true },
|
||||||
|
},
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
return {
|
||||||
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
|
config = {
|
||||||
|
window = {
|
||||||
|
position = "right",
|
||||||
|
mappings = {
|
||||||
|
l = "toggle_node",
|
||||||
|
L = "close_all_nodes",
|
||||||
|
["<esc>"] = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
return {
|
||||||
|
"rcarriga/nvim-notify",
|
||||||
|
keys = {
|
||||||
|
{ "<esc>", require("notify").dismiss },
|
||||||
|
},
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
return {
|
||||||
|
"nvim-telescope/telescope.nvim",
|
||||||
|
keys = {
|
||||||
|
{ "<leader>,", false },
|
||||||
|
},
|
||||||
|
}
|
|
@ -2,6 +2,9 @@ return {
|
||||||
"folke/which-key.nvim",
|
"folke/which-key.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
local wk = require("which-key")
|
local wk = require("which-key")
|
||||||
|
local mark = require("harpoon.mark")
|
||||||
|
local ui = require("harpoon.ui")
|
||||||
|
local term = require("harpoon.term")
|
||||||
|
|
||||||
local mappings = {
|
local mappings = {
|
||||||
w = {
|
w = {
|
||||||
|
@ -29,6 +32,75 @@ return {
|
||||||
},
|
},
|
||||||
d = { "<cmd><cr>", "which_key_ignore" },
|
d = { "<cmd><cr>", "which_key_ignore" },
|
||||||
},
|
},
|
||||||
|
h = {
|
||||||
|
name = "Harpoon",
|
||||||
|
a = { mark.add_file, "Add file" },
|
||||||
|
h = { ui.toggle_quick_menu, "Toggle quick menu" },
|
||||||
|
n = {
|
||||||
|
function()
|
||||||
|
ui.nav_next()
|
||||||
|
end,
|
||||||
|
"Navigate next",
|
||||||
|
},
|
||||||
|
p = {
|
||||||
|
function()
|
||||||
|
ui.nav_prev()
|
||||||
|
end,
|
||||||
|
"Navigate previous",
|
||||||
|
},
|
||||||
|
["1"] = {
|
||||||
|
function()
|
||||||
|
ui.nav_file(1)
|
||||||
|
end,
|
||||||
|
"Navigate 1",
|
||||||
|
},
|
||||||
|
["2"] = {
|
||||||
|
function()
|
||||||
|
ui.nav_file(2)
|
||||||
|
end,
|
||||||
|
"Navigate 2",
|
||||||
|
},
|
||||||
|
["3"] = {
|
||||||
|
function()
|
||||||
|
ui.nav_file(3)
|
||||||
|
end,
|
||||||
|
"Navigate 3",
|
||||||
|
},
|
||||||
|
["4"] = {
|
||||||
|
function()
|
||||||
|
ui.nav_file(4)
|
||||||
|
end,
|
||||||
|
"Navigate 4",
|
||||||
|
},
|
||||||
|
["&"] = {
|
||||||
|
function()
|
||||||
|
ui.nav_file(1)
|
||||||
|
end,
|
||||||
|
"Navigate 1",
|
||||||
|
},
|
||||||
|
["é"] = {
|
||||||
|
function()
|
||||||
|
ui.nav_file(2)
|
||||||
|
end,
|
||||||
|
"Navigate 2",
|
||||||
|
},
|
||||||
|
['"'] = {
|
||||||
|
function()
|
||||||
|
ui.nav_file(3)
|
||||||
|
end,
|
||||||
|
"Navigate 3",
|
||||||
|
},
|
||||||
|
["'"] = {
|
||||||
|
function()
|
||||||
|
ui.nav_file(4)
|
||||||
|
end,
|
||||||
|
"Navigate 4",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
-- ["?"] = {
|
||||||
|
-- vim.cmd.Legendary,
|
||||||
|
-- "Legendary",
|
||||||
|
-- },
|
||||||
}
|
}
|
||||||
|
|
||||||
wk.register(mappings, { mode = "n", prefix = "<leader>" })
|
wk.register(mappings, { mode = "n", prefix = "<leader>" })
|
||||||
|
|
Loading…
Reference in New Issue