This commit is contained in:
2024-06-26 22:26:59 -04:00
parent 230dacf409
commit 759c50afe9
3 changed files with 50 additions and 33 deletions

View File

@@ -916,10 +916,3 @@ vim.api.nvim_create_user_command('Wex', function()
vim.cmd 'w' vim.cmd 'w'
vim.cmd 'Oil' vim.cmd 'Oil'
end, {}) end, {})
vim.api.nvim_create_user_command('G', function(opts)
if #opts.fargs == 0 then
vim.cmd '!git status'
else
vim.cmd('silent! !' .. 'git ' .. table.concat(opts.fargs, ' '))
end
end, { nargs = '*' })

View File

@@ -25,6 +25,8 @@
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" }, "telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, "telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
"todo-comments.nvim": { "branch": "main", "commit": "51e10f838e84b4756c16311d0b1ef0972c6482d2" }, "todo-comments.nvim": { "branch": "main", "commit": "51e10f838e84b4756c16311d0b1ef0972c6482d2" },
"vim-fugitive": { "branch": "master", "commit": "d0c1a437536778bcc8174b7cb2ffdf98f611e6fe" },
"vim-sleuth": { "branch": "master", "commit": "1cc4557420f215d02c4d2645a748a816c220e99b" }, "vim-sleuth": { "branch": "master", "commit": "1cc4557420f215d02c4d2645a748a816c220e99b" },
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
"which-key.nvim": { "branch": "main", "commit": "0099511294f16b81c696004fa6a403b0ae61f7a0" } "which-key.nvim": { "branch": "main", "commit": "0099511294f16b81c696004fa6a403b0ae61f7a0" }
} }

View File

@@ -3,34 +3,56 @@
-- --
-- See the kickstart.nvim README for more information -- See the kickstart.nvim README for more information
return { return {
{ {
'stevearc/oil.nvim', 'stevearc/oil.nvim',
opts = {}, opts = {},
-- Optional dependencies -- Optional dependencies
dependencies = { "nvim-tree/nvim-web-devicons" }, dependencies = { 'nvim-tree/nvim-web-devicons' },
}, },
{ {
"ThePrimeagen/harpoon", 'ThePrimeagen/harpoon',
branch = "harpoon2", branch = 'harpoon2',
dependencies = { "nvim-lua/plenary.nvim" }, dependencies = { 'nvim-lua/plenary.nvim' },
config = function() config = function()
local harpoon = require("harpoon") local harpoon = require 'harpoon'
-- REQUIRED -- REQUIRED
harpoon:setup() harpoon:setup()
-- REQUIRED -- REQUIRED
vim.keymap.set("n", "<leader>a", function() harpoon:list():append() end) vim.keymap.set('n', '<leader>a', function()
vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) harpoon:list():append()
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-h>', function()
vim.keymap.set("n", "<C-t>", function() harpoon:list():select(2) end) harpoon:list():select(1)
vim.keymap.set("n", "<C-n>", function() harpoon:list():select(3) end) end)
vim.keymap.set("n", "<C-s>", function() harpoon:list():select(4) 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 -- 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-P>', function()
vim.keymap.set("n", "<C-S-N>", function() harpoon:list():next() end) harpoon:list():prev()
end end)
} vim.keymap.set('n', '<C-S-N>', function()
harpoon:list():next()
end)
end,
},
{
'tpope/vim-fugitive',
},
{
'tpope/vim-surround',
},
} }