refactor config
This commit is contained in:
commit
4f0e213f4a
155 changed files with 13983 additions and 0 deletions
27
config/nvim.old/lua/plugins/harpoon.lua
Normal file
27
config/nvim.old/lua/plugins/harpoon.lua
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
local mapper = require("nvim-mapper")
|
||||
|
||||
require("harpoon").setup({
|
||||
global_settings = {save_on_toggle = false, save_on_change = true}
|
||||
})
|
||||
|
||||
-- Mark list
|
||||
mapper.map('n', '<Leader>mq',
|
||||
[[:lua require("harpoon.ui").toggle_quick_menu()<CR>]],
|
||||
{silent = true, noremap = true}, "harpoon", "quick_menu",
|
||||
"Open list of marked files")
|
||||
|
||||
-- Mark File
|
||||
mapper.map('n', '<Leader>ma', [[:lua require("harpoon.mark").add_file()<CR>]],
|
||||
{silent = true, noremap = true}, "harpoon", "add_file",
|
||||
"Add current file to mark list")
|
||||
|
||||
-- Open marked file
|
||||
mapper.map('n', '<Leader>mj', [[:lua require("harpoon.ui").nav_file(1)<CR>]],
|
||||
{silent = true, noremap = true}, "harpoon", "file_navigation_1",
|
||||
"Go to marked file 1")
|
||||
mapper.map('n', '<Leader>mk', [[:lua require("harpoon.ui").nav_file(2)<CR>]],
|
||||
{silent = true, noremap = true}, "harpoon", "file_navigation_2",
|
||||
"Go to marked file 2")
|
||||
mapper.map('n', '<Leader>ml', [[:lua require("harpoon.ui").nav_file(3)<CR>]],
|
||||
{silent = true, noremap = true}, "harpoon", "file_navigation_3",
|
||||
"Go to marked file 3")
|
||||
Loading…
Add table
Add a link
Reference in a new issue