new cool rebinds, add fugitive
This commit is contained in:
parent
664bb5c26d
commit
aef1945092
|
|
@ -11,7 +11,7 @@
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "6bdb14f230de0904229ec367b410fb817e59b072" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "6bdb14f230de0904229ec367b410fb817e59b072" },
|
||||||
"mason-tool-installer.nvim": { "branch": "main", "commit": "517ef5994ef9d6b738322664d5fdd948f0fdeb46" },
|
"mason-tool-installer.nvim": { "branch": "main", "commit": "517ef5994ef9d6b738322664d5fdd948f0fdeb46" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" },
|
"mason.nvim": { "branch": "main", "commit": "ad7146aa61dcaeb54fa900144d768f040090bff0" },
|
||||||
"mini.nvim": { "branch": "main", "commit": "6a224ddd28b4b21a488d6d87e1c2643a029caaa4" },
|
"mini.nvim": { "branch": "main", "commit": "89eecd8b4c15f8de72dd4b5244534abed8dc086f" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "ac98db2f9f06a56498ec890a96928774eae412c3" },
|
"nvim-lspconfig": { "branch": "master", "commit": "ac98db2f9f06a56498ec890a96928774eae412c3" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||||
|
|
@ -20,6 +20,8 @@
|
||||||
"telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },
|
"telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },
|
||||||
"todo-comments.nvim": { "branch": "main", "commit": "19d461ddd543e938eb22505fb03fa878800270b6" },
|
"todo-comments.nvim": { "branch": "main", "commit": "19d461ddd543e938eb22505fb03fa878800270b6" },
|
||||||
"tokyonight.nvim": { "branch": "main", "commit": "d14614cbfc63b6037bfccd48bb982d2ad2003352" },
|
"tokyonight.nvim": { "branch": "main", "commit": "d14614cbfc63b6037bfccd48bb982d2ad2003352" },
|
||||||
|
"undotree": { "branch": "master", "commit": "0f1c9816975b5d7f87d5003a19c53c6fd2ff6f7f" },
|
||||||
"vim-be-good": { "branch": "master", "commit": "0ae3de14eb8efc6effe7704b5e46495e91931cc5" },
|
"vim-be-good": { "branch": "master", "commit": "0ae3de14eb8efc6effe7704b5e46495e91931cc5" },
|
||||||
|
"vim-fugitive": { "branch": "master", "commit": "61b51c09b7c9ce04e821f6cf76ea4f6f903e3cf4" },
|
||||||
"which-key.nvim": { "branch": "main", "commit": "b4177e3eaf15fe5eb8357ebac2286d488be1ed00" }
|
"which-key.nvim": { "branch": "main", "commit": "b4177e3eaf15fe5eb8357ebac2286d488be1ed00" }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,71 @@
|
||||||
-- You can add your own plugins here or in other files in this directory!
|
return {
|
||||||
-- I promise not to create any merge conflicts in this directory :)
|
{
|
||||||
--
|
'tpope/vim-fugitive',
|
||||||
-- See the kickstart.nvim README for more information
|
},
|
||||||
return {}
|
{
|
||||||
|
'ThePrimeagen/vim-be-good',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'mbbill/undotree',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'ThePrimeagen/harpoon',
|
||||||
|
branch = 'harpoon2',
|
||||||
|
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||||
|
config = function()
|
||||||
|
require('harpoon'):setup()
|
||||||
|
end,
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
'<leader>A',
|
||||||
|
function()
|
||||||
|
require('harpoon'):list():add()
|
||||||
|
end,
|
||||||
|
desc = 'harpoon file',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<leader>a',
|
||||||
|
function()
|
||||||
|
local harpoon = require 'harpoon'
|
||||||
|
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||||
|
end,
|
||||||
|
desc = 'harpoon quick menu',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<leader>1',
|
||||||
|
function()
|
||||||
|
require('harpoon'):list():select(1)
|
||||||
|
end,
|
||||||
|
desc = 'harpoon to file 1',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<leader>2',
|
||||||
|
function()
|
||||||
|
require('harpoon'):list():select(2)
|
||||||
|
end,
|
||||||
|
desc = 'harpoon to file 2',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<leader>3',
|
||||||
|
function()
|
||||||
|
require('harpoon'):list():select(3)
|
||||||
|
end,
|
||||||
|
desc = 'harpoon to file 3',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<leader>4',
|
||||||
|
function()
|
||||||
|
require('harpoon'):list():select(4)
|
||||||
|
end,
|
||||||
|
desc = 'harpoon to file 4',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'<leader>5',
|
||||||
|
function()
|
||||||
|
require('harpoon'):list():select(5)
|
||||||
|
end,
|
||||||
|
desc = 'harpoon to file 5',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
vim.keymap.set('v', 'J', ":m '>+1<CR>gv=gv", { desc = 'Move selection down' })
|
||||||
|
vim.keymap.set('v', 'K', ":m '<-2<CR>gv=gv", { desc = 'Move selection up' })
|
||||||
|
|
||||||
|
vim.keymap.set('n', '<C-d>', '<C-d>zz', { desc = 'Half page down (centered)' })
|
||||||
|
vim.keymap.set('n', '<C-u>', '<C-u>zz', { desc = 'Half page up (centered)' })
|
||||||
|
|
||||||
|
vim.keymap.set('n', '<leader>y', '"+y', { desc = 'Yank to system clipboard' })
|
||||||
|
vim.keymap.set('v', '<leader>y', '"+y', { desc = 'Yank to system clipboard' })
|
||||||
|
|
||||||
|
vim.keymap.set('n', '<leader>Y', '"+Y', { desc = 'Yank line to system clipboard' })
|
||||||
|
vim.keymap.set('n', '<leader>p', '"+p', { desc = 'Paste from system clipboard' })
|
||||||
|
vim.keymap.set('v', '<leader>p', '"+p', { desc = 'Paste from system clipboard' })
|
||||||
|
vim.keymap.set('n', '<leader>P', '"+P', { desc = 'Paste before from system clipboard' })
|
||||||
|
|
||||||
|
vim.keymap.set('n', '<leader>%s', [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]], { desc = 'Search and replace word under cursor' })
|
||||||
|
|
||||||
|
vim.keymap.set('n', '<leader>u', vim.cmd.UndotreeToggle)
|
||||||
Loading…
Reference in New Issue