personal configuations
merge conflicts adjusted
This commit is contained in:
parent
1860184830
commit
373c8dc5d3
12 changed files with 318 additions and 144 deletions
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, { desc = 'Add Buffer to Harpoon' })
|
||||
vim.keymap.set('n', '<C-e>', function()
|
||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||
end)
|
||||
|
||||
vim.keymap.set('n', '<leader>1', function()
|
||||
harpoon:list():select(1)
|
||||
end, { desc = 'First Buffer in Harpoon' })
|
||||
vim.keymap.set('n', '<leader>2', function()
|
||||
harpoon:list():select(2)
|
||||
end, { desc = 'Second Buffer in Harpoon' })
|
||||
vim.keymap.set('n', '<leader>3', function()
|
||||
harpoon:list():select(3)
|
||||
end, { desc = 'Third Buffer in Harpoon' })
|
||||
vim.keymap.set('n', '<leader>4', function()
|
||||
harpoon:list():select(4)
|
||||
end, { desc = 'Fourth Buffer in Harpoon' })
|
||||
|
||||
-- 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,
|
||||
}
|
||||
24
lua/custom/plugins/oil.lua
Normal file
24
lua/custom/plugins/oil.lua
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
return {
|
||||
{
|
||||
'stevearc/oil.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
config = function()
|
||||
require('oil').setup {
|
||||
columns = { 'icon' },
|
||||
keymaps = {
|
||||
['<C-h>'] = false,
|
||||
['<M-h>'] = 'actions.select_vsplit',
|
||||
},
|
||||
view_options = {
|
||||
show_hidden = true,
|
||||
},
|
||||
}
|
||||
|
||||
-- Open parent directory in current window
|
||||
vim.keymap.set('n', '<leader>n', '<CMD>Oil<CR>', { desc = 'Open parent directory' })
|
||||
|
||||
-- Open parent directory in floating window
|
||||
vim.keymap.set('n', '<space>-', require('oil').toggle_float)
|
||||
end,
|
||||
},
|
||||
}
|
||||
6
lua/custom/plugins/undotree.lua
Normal file
6
lua/custom/plugins/undotree.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
return {
|
||||
'mbbill/undotree',
|
||||
config = function()
|
||||
vim.keymap.set('n', '<leader>u', vim.cmd.UndotreeToggle)
|
||||
end,
|
||||
}
|
||||
11
lua/custom/plugins/vim-test.lua
Normal file
11
lua/custom/plugins/vim-test.lua
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
return {
|
||||
'vim-test/vim-test',
|
||||
dependencies = {
|
||||
'preservim/vimux',
|
||||
},
|
||||
vim.keymap.set('n', '<leader>t', ':TestNearest<CR>'),
|
||||
vim.keymap.set('n', '<leader>T', ':TestFile<CR>'),
|
||||
vim.keymap.set('n', '<leader>m', ':TestSuite<CR>'),
|
||||
vim.keymap.set('n', '<leader>l', ':TestLast<CR>'),
|
||||
vim.keymap.set('n', '<leader>g', ':TestVisit<CR>'),
|
||||
}
|
||||
18
lua/custom/plugins/vim-tmux.lua
Normal file
18
lua/custom/plugins/vim-tmux.lua
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
return {
|
||||
'christoomey/vim-tmux-navigator',
|
||||
lazy = false,
|
||||
cmd = {
|
||||
'TmuxNavigateLeft',
|
||||
'TmuxNavigateDown',
|
||||
'TmuxNavigateUp',
|
||||
'TmuxNavigateRight',
|
||||
'TmuxNavigatePrevious',
|
||||
},
|
||||
keys = {
|
||||
{ '<c-h>', '<cmd><C-U>TmuxNavigateLeft<cr>' },
|
||||
{ '<c-j>', '<cmd><C-U>TmuxNavigateDown<cr>' },
|
||||
{ '<c-k>', '<cmd><C-U>TmuxNavigateUp<cr>' },
|
||||
{ '<c-l>', '<cmd><C-U>TmuxNavigateRight<cr>' },
|
||||
{ '<c-\\>', '<cmd><C-U>TmuxNavigatePrevious<cr>' },
|
||||
},
|
||||
}
|
||||
3
lua/custom/plugins/vim_cmake.lua
Normal file
3
lua/custom/plugins/vim_cmake.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
'cdelledonne/vim-cmake',
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue