Mystuff
This commit is contained in:
parent
a22976111e
commit
b174df8a59
7 changed files with 169 additions and 110 deletions
3
lua/custom/plugins/fugitive.lua
Normal file
3
lua/custom/plugins/fugitive.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
'tpope/vim-fugitive',
|
||||
}
|
||||
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', '<leader>a', function()
|
||||
harpoon:list():add()
|
||||
end)
|
||||
vim.keymap.set('n', '<C-e>', function()
|
||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||
end)
|
||||
|
||||
-- vim.keymap.set('n', '<C-h>', function()
|
||||
-- harpoon:list():select(1)
|
||||
-- end)
|
||||
vim.keymap.set('n', '<C-t>', function()
|
||||
harpoon:list():select(2)
|
||||
end)
|
||||
vim.keymap.set('n', '<C-n>', function()
|
||||
harpoon:list():select(3)
|
||||
end)
|
||||
vim.keymap.set('n', '<C-s>', 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,
|
||||
}
|
||||
12
lua/custom/plugins/neogit.lua
Normal file
12
lua/custom/plugins/neogit.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
'NeogitOrg/neogit',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim', -- required
|
||||
'sindrets/diffview.nvim', -- optional - Diff integration
|
||||
|
||||
-- Only one of these is needed, not both.
|
||||
'nvim-telescope/telescope.nvim', -- optional
|
||||
-- "ibhagwan/fzf-lua", -- optional
|
||||
},
|
||||
config = true,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue