neovim conf part 4 i think
This commit is contained in:
parent
ac7ba4097d
commit
d6c19e2e92
12 changed files with 154 additions and 166 deletions
29
.config/nvim/lua/config/plugins/harpoon.lua
Normal file
29
.config/nvim/lua/config/plugins/harpoon.lua
Normal file
|
@ -0,0 +1,29 @@
|
|||
return {
|
||||
'ThePrimeagen/harpoon',
|
||||
branch = 'harpoon2',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
config = function()
|
||||
|
||||
local harpoon = require('harpoon')
|
||||
harpoon:setup({
|
||||
settings = {
|
||||
save_on_toggle = true,
|
||||
sync_on_ui_close = true
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
vim.keymap.set('n', '<leader>a', function() harpoon:list():add() end)
|
||||
vim.keymap.set('n', '<C-h>', function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
||||
|
||||
vim.keymap.set('n', '<A-1>', function() harpoon:list():select(1) end)
|
||||
vim.keymap.set('n', '<A-2>', function() harpoon:list():select(2) end)
|
||||
vim.keymap.set('n', '<A-3>', function() harpoon:list():select(3) end)
|
||||
vim.keymap.set('n', '<A-q>', function() harpoon:list():select(4) end)
|
||||
|
||||
-- -- Toggle previous & next buffers stored within Harpoon list
|
||||
-- vim.keymap.set('n', '<C-S-P>', function() harpoon:list():prev() end)
|
||||
-- vim.keymap.set('n', '<C-S-N>', function() harpoon:list():next() end)
|
||||
|
||||
end
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue