update harpoon
This commit is contained in:
parent
b5ff20bd3c
commit
6a1a1589a2
3
init.lua
3
init.lua
|
|
@ -118,6 +118,8 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
|
||||||
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
|
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
|
||||||
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
|
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
|
||||||
|
|
||||||
|
vim.keymap.set('n', '<C-u>', '<C-u>zz')
|
||||||
|
vim.keymap.set('n', '<C-d>', '<C-d>zz')
|
||||||
-- [[ Basic Autocommands ]]
|
-- [[ Basic Autocommands ]]
|
||||||
-- See `:help lua-guide-autocommands`
|
-- See `:help lua-guide-autocommands`
|
||||||
|
|
||||||
|
|
@ -344,6 +346,7 @@ require('lazy').setup({
|
||||||
|
|
||||||
-- See `:help telescope.builtin`
|
-- See `:help telescope.builtin`
|
||||||
local builtin = require 'telescope.builtin'
|
local builtin = require 'telescope.builtin'
|
||||||
|
vim.keymap.set('n', '<C-p>', builtin.find_files)
|
||||||
vim.keymap.set('n', '<leader>sh', builtin.help_tags, { desc = '[S]earch [H]elp' })
|
vim.keymap.set('n', '<leader>sh', builtin.help_tags, { desc = '[S]earch [H]elp' })
|
||||||
vim.keymap.set('n', '<leader>sk', builtin.keymaps, { desc = '[S]earch [K]eymaps' })
|
vim.keymap.set('n', '<leader>sk', builtin.keymaps, { desc = '[S]earch [K]eymaps' })
|
||||||
vim.keymap.set('n', '<leader>sf', builtin.find_files, { desc = '[S]earch [F]iles' })
|
vim.keymap.set('n', '<leader>sf', builtin.find_files, { desc = '[S]earch [F]iles' })
|
||||||
|
|
|
||||||
|
|
@ -1,37 +1,37 @@
|
||||||
return {
|
return {
|
||||||
-- 'ThePrimeagen/harpoon',
|
'ThePrimeagen/harpoon',
|
||||||
-- branch = 'harpoon2',
|
branch = 'harpoon2',
|
||||||
-- dependencies = { 'nvim-lua/plenary.nvim' },
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||||
-- init = function()
|
init = function()
|
||||||
-- local harpoon = require 'harpoon'
|
local harpoon = require 'harpoon'
|
||||||
--
|
|
||||||
-- harpoon:setup()
|
harpoon:setup()
|
||||||
-- vim.keymap.set('n', '<leader>a', function()
|
vim.keymap.set('n', '<leader>a', function()
|
||||||
-- harpoon:list():add()
|
harpoon:list():add()
|
||||||
-- end)
|
end)
|
||||||
-- vim.keymap.set('n', '<C-e>', function()
|
vim.keymap.set('n', '<C-e>', function()
|
||||||
-- harpoon.ui:toggle_quick_menu(harpoon:list())
|
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||||
-- end)
|
end)
|
||||||
--
|
|
||||||
-- vim.keymap.set('n', '<C-h>', function()
|
vim.keymap.set('n', '<C-f>', function()
|
||||||
-- harpoon:list():select(1)
|
harpoon:list():select(1)
|
||||||
-- end)
|
end)
|
||||||
-- vim.keymap.set('n', '<C-j>', function()
|
vim.keymap.set('n', '<C-g>', function()
|
||||||
-- harpoon:list():select(2)
|
harpoon:list():select(2)
|
||||||
-- end)
|
end)
|
||||||
-- vim.keymap.set('n', '<C-k>', function()
|
vim.keymap.set('n', '<C-h>', function()
|
||||||
-- harpoon:list():select(3)
|
harpoon:list():select(3)
|
||||||
-- end)
|
end)
|
||||||
-- vim.keymap.set('n', '<C-l>', function()
|
vim.keymap.set('n', '<C-t>', function()
|
||||||
-- harpoon:list():select(4)
|
harpoon:list():select(4)
|
||||||
-- end)
|
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()
|
vim.keymap.set('n', '<C-S-P>', function()
|
||||||
-- harpoon:list():prev()
|
harpoon:list():prev()
|
||||||
-- end)
|
end)
|
||||||
-- vim.keymap.set('n', '<C-S-N>', function()
|
vim.keymap.set('n', '<C-S-N>', function()
|
||||||
-- harpoon:list():next()
|
harpoon:list():next()
|
||||||
-- end)
|
end)
|
||||||
-- end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
-- nvim v0.8.0
|
||||||
|
return {
|
||||||
|
'kdheepak/lazygit.nvim',
|
||||||
|
lazy = true,
|
||||||
|
cmd = {
|
||||||
|
'LazyGit',
|
||||||
|
'LazyGitConfig',
|
||||||
|
'LazyGitCurrentFile',
|
||||||
|
'LazyGitFilter',
|
||||||
|
'LazyGitFilterCurrentFile',
|
||||||
|
},
|
||||||
|
-- optional for floating window border decoration
|
||||||
|
dependencies = {
|
||||||
|
'nvim-lua/plenary.nvim',
|
||||||
|
},
|
||||||
|
-- setting the keybinding for LazyGit with 'keys' is recommended in
|
||||||
|
-- order to load the plugin when the command is run for the first time
|
||||||
|
keys = {
|
||||||
|
{ '<leader>lg', '<cmd>LazyGit<cr>', desc = 'LazyGit' },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
return {
|
||||||
|
'ThePrimeagen/vim-be-good',
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue