feat(cfg): first backup, need refactor
- todo: -- move custom keybindings to a separate file -- move vimbegood to .lua/custom/init.lua -- uncomment custom plugins in init.lua
This commit is contained in:
parent
c80a77488b
commit
da112f882c
2 changed files with 67 additions and 3 deletions
22
lua/custom/plugins/harpoon.lua
Normal file
22
lua/custom/plugins/harpoon.lua
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
return {
|
||||
'ThePrimeagen/harpoon',
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
|
||||
config = function()
|
||||
require("harpoon").setup {}
|
||||
|
||||
local mark = require("harpoon.mark")
|
||||
local ui = require("harpoon.ui")
|
||||
|
||||
vim.keymap.set("n", "<M-a>", mark.add_file)
|
||||
vim.keymap.set("n", "<M-m>", ui.toggle_quick_menu)
|
||||
|
||||
vim.keymap.set("n", "<M-1>", function() ui.nav_file(1) end)
|
||||
vim.keymap.set("n", "<M-2>", function() ui.nav_file(2) end)
|
||||
vim.keymap.set("n", "<M-3>", function() ui.nav_file(3) end)
|
||||
vim.keymap.set("n", "<M-4>", function() ui.nav_file(4) end)
|
||||
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue