Fixing harpoon
This commit is contained in:
parent
9943508270
commit
9480380fba
|
|
@ -32,8 +32,8 @@ require('lazy').setup({
|
||||||
require 'plugins_config/mini', -- Collections of useful mini plugins, like around/surround
|
require 'plugins_config/mini', -- Collections of useful mini plugins, like around/surround
|
||||||
require 'plugins_config/tree-sitter', -- manage lint, indentation and some othe language related tasks
|
require 'plugins_config/tree-sitter', -- manage lint, indentation and some othe language related tasks
|
||||||
|
|
||||||
-- Broken configs
|
-- Broken configs/Testing config
|
||||||
-- require 'plugins_config/harpoon', -- Improve workflow for multiple files
|
require 'plugins_config/harpoon', -- Improve workflow for multiple files
|
||||||
-- keeping comments for annotation
|
-- keeping comments for annotation
|
||||||
-- NOTE: Plugins can also be added by using a table,
|
-- NOTE: Plugins can also be added by using a table,
|
||||||
-- with the first argument being the link and the following
|
-- with the first argument being the link and the following
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,28 @@
|
||||||
return {
|
return {
|
||||||
'ThePrimeagen/harpoon',
|
'ThePrimeagen/harpoon',
|
||||||
opts = {
|
dependencies = {
|
||||||
-- local mark = require 'harpoon.mark',
|
'nvim-lua/plenary.nvim',
|
||||||
-- local ui = require 'harpoon.ui',
|
|
||||||
--
|
|
||||||
-- vim.keymap.set('n', '<leader>a', mark.add_file),
|
|
||||||
-- vim.keymap.set('n', '<C-e>', ui.toggle_quick_menu),
|
|
||||||
--
|
|
||||||
-- vim.keymap.set('n', '<C-u>', function()
|
|
||||||
-- ui.nav_file(1)
|
|
||||||
-- end),
|
|
||||||
-- vim.keymap.set('n', '<C-i>', function()
|
|
||||||
-- ui.nav_file(2)
|
|
||||||
-- end),
|
|
||||||
-- vim.keymap.set('n', '<C-o>', function()
|
|
||||||
-- ui.nav_file(3)
|
|
||||||
-- end),
|
|
||||||
-- vim.keymap.set('n', '<C-p>', function()
|
|
||||||
-- ui.nav_file(4)
|
|
||||||
-- end),
|
|
||||||
},
|
},
|
||||||
|
config = function()
|
||||||
|
require('harpoon').setup {}
|
||||||
|
-- local harpoon = require('harpoon')
|
||||||
|
local mark = require 'harpoon.mark'
|
||||||
|
local ui = require 'harpoon.ui'
|
||||||
|
--
|
||||||
|
vim.keymap.set('n', '<leader>a', mark.add_file, { desc = 'Mark a file to be used in harpoon' })
|
||||||
|
vim.keymap.set('n', '<C-e>', ui.toggle_quick_menu, { desc = 'Toogle harpoon quick menu' })
|
||||||
|
--
|
||||||
|
vim.keymap.set('n', '<C-u>', function()
|
||||||
|
ui.nav_file(1)
|
||||||
|
end, { desc = 'Navigate to first marked file' })
|
||||||
|
vim.keymap.set('n', '<C-i>', function()
|
||||||
|
ui.nav_file(2)
|
||||||
|
end, { desc = 'Navigate to first marked file' })
|
||||||
|
vim.keymap.set('n', '<C-o>', function()
|
||||||
|
ui.nav_file(3)
|
||||||
|
end, { desc = 'Navigate to first marked file' })
|
||||||
|
vim.keymap.set('n', '<C-p>', function()
|
||||||
|
ui.nav_file(4)
|
||||||
|
end, { desc = 'Navigate to first marked file' })
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue