installed harpoon + refactor changes
This commit is contained in:
parent
5078bd548f
commit
623fec03f6
5 changed files with 46 additions and 11 deletions
|
|
@ -34,7 +34,7 @@ return {
|
|||
async = false,
|
||||
timeout_ms = 1000,
|
||||
}
|
||||
vim.cmd('write')
|
||||
vim.cmd 'write'
|
||||
end, { desc = 'Format file or range (in visual mode)' })
|
||||
end,
|
||||
}
|
||||
40
lua/custom/plugins/harpoon.lua
Normal file
40
lua/custom/plugins/harpoon.lua
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
return {
|
||||
'ThePrimeagen/harpoon',
|
||||
branch = 'harpoon2',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
config = function()
|
||||
local harpoon = require 'harpoon'
|
||||
|
||||
-- REQUIRED
|
||||
harpoon:setup()
|
||||
-- REQUIRED
|
||||
|
||||
vim.keymap.set('n', '<C-a>', function()
|
||||
harpoon:list():append()
|
||||
end, { desc = "Add to harpoon"})
|
||||
vim.keymap.set('n', '<C-s>', function()
|
||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||
end)
|
||||
|
||||
vim.keymap.set('n', '<C-q>', function()
|
||||
harpoon:list():select(1)
|
||||
end)
|
||||
vim.keymap.set('n', '<C-w>', function()
|
||||
harpoon:list():select(2)
|
||||
end)
|
||||
vim.keymap.set('n', '<C-e>', function()
|
||||
harpoon:list():select(3)
|
||||
end)
|
||||
vim.keymap.set('n', '<C-r>', 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,
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
return {
|
||||
"karb94/neoscroll.nvim",
|
||||
config = function ()
|
||||
require('neoscroll').setup {}
|
||||
end
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue