nvim/zsh: remove jj key mapping, add two aliases, nvim: back to arrow

This commit is contained in:
2025-06-03 22:59:14 +02:00
parent 3eaba86825
commit f5302fc646
6 changed files with 22 additions and 57 deletions

View File

@@ -20,12 +20,6 @@ return {
}
end,
},
{
"max397574/better-escape.nvim",
config = function(_, opts)
require("better_escape").setup(opts)
end,
},
{
"folke/zen-mode.nvim",
opts = {

View File

@@ -1,4 +1,18 @@
return {
{
"otavioschwanck/arrow.nvim",
dependencies = {
{ "nvim-tree/nvim-web-devicons" },
-- or if using `mini.icons`
-- { "echasnovski/mini.icons" },
},
opts = {
show_icons = true,
leader_key = '-', -- Recommended to be a single key
buffer_leader_key = '+', -- Per Buffer Mappings
}
},
-- "gc" to comment visual regions/lines
{
'numToStr/Comment.nvim',
@@ -21,9 +35,9 @@ return {
{
'inkarkat/vim-ReplaceWithRegister',
keys = {
{ 'gp', '<Plug>ReplaceWithRegisterOperator' },
{ 'gpp', '<Plug>ReplaceWithRegisterLine' },
{ 'gp', '<Plug>ReplaceWithRegisterVisual', mode = 'x' },
{ '<leader>rp', '<Plug>ReplaceWithRegisterOperator' },
{ '<leader>rpp', '<Plug>ReplaceWithRegisterLine' },
{ '<leader>rp', '<Plug>ReplaceWithRegisterVisual', mode = 'x' },
},
},
@@ -84,11 +98,4 @@ return {
},
},
{
'echasnovski/mini.nvim',
version = '*',
config = function()
require('mini.ai').setup()
end
},
}

View File

@@ -1,36 +0,0 @@
local function rabbit_select(n)
require('rabbit').Switch('harpoon').func.select(n)
end
return {
'VoxelPrismatic/rabbit.nvim',
event = 'VeryLazy',
opts = {
window = {
float = 'center',
plugin_name_position = 'title',
},
default_keys = {
open = { '-', '<leader>;' },
},
plugin_opts = {
history = { switch = ';' },
harpoon = { switch = 'f' },
},
colors = {
file = '#EBCB8B',
},
},
keys = {
{ '<leader>1', function() rabbit_select(1) end },
{ '<leader>2', function() rabbit_select(2) end },
{ '<leader>3', function() rabbit_select(3) end },
{ '<leader>4', function() rabbit_select(4) end },
{ '<leader>5', function() rabbit_select(5) end },
{ '<leader>6', function() rabbit_select(6) end },
{ '<leader>7', function() rabbit_select(7) end },
{ '<leader>8', function() rabbit_select(8) end },
{ '<leader>9', function() rabbit_select(9) end },
{ '<leader>0', function() rabbit_select(10) end },
},
}