nvim: replace arrow with rabbit plugin

This commit is contained in:
Łukasz Pankowski 2025-03-19 00:29:11 +01:00
parent f2f29762a4
commit c06364cd27
4 changed files with 34 additions and 31 deletions

View File

@ -1,7 +1,6 @@
{
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
"LuaSnip": { "branch": "master", "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" },
"arrow.nvim": { "branch": "master", "commit": "5438c977e729a29d96bd54c8da3103154e80dbd1" },
"better-escape.nvim": { "branch": "master", "commit": "199dcc2643dec5d8dbdab4ec672cf405224dcb3b" },
"blame.nvim": { "branch": "main", "commit": "39bb4cda9e658d053a43919b10ca52c0a4d738e1" },
"bookmarks.nvim": { "branch": "main", "commit": "42371a76cdd786452b537490926b1b6a041672e5" },
@ -44,6 +43,7 @@
"persisted.nvim": { "branch": "main", "commit": "b4b7a281307f8b52d47b0fd5b6798a453681d44e" },
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
"quicker.nvim": { "branch": "master", "commit": "1798be71cdcb15fb84fa8054148a56e17fd391dc" },
"rabbit.nvim": { "branch": "master", "commit": "3a4ce048b8ecc48811d061220d0e86111adda20d" },
"sqlite.lua": { "branch": "master", "commit": "50092d60feb242602d7578398c6eb53b4a8ffe7b" },
"tardis.nvim": { "branch": "main", "commit": "a6ee00a217529490e79d349b1f1a9cf5831180d3" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "2a5ceff981501cff8f46871d5402cd3378a8ab6a" },

View File

@ -1,22 +0,0 @@
return {
{
"otavioschwanck/arrow.nvim",
opts = {
show_icons = true,
leader_key = '-',
buffer_leader_key = '<leader>m',
},
keys = {
{ "<leader>1", function() require("arrow.persist").go_to(1) end },
{ "<leader>2", function() require("arrow.persist").go_to(2) end },
{ "<leader>3", function() require("arrow.persist").go_to(3) end },
{ "<leader>4", function() require("arrow.persist").go_to(4) end },
{ "<leader>5", function() require("arrow.persist").go_to(5) end },
{ "<leader>6", function() require("arrow.persist").go_to(6) end },
{ "<leader>7", function() require("arrow.persist").go_to(7) end },
{ "<leader>8", function() require("arrow.persist").go_to(8) end },
{ "<leader>9", function() require("arrow.persist").go_to(9) end },
{ "<leader>0", function() require("arrow.persist").go_to(10) end },
}
}
}

View File

@ -37,7 +37,6 @@ local function feline_config(_, opts)
}
feline.add_theme('light', light_theme)
local statusline = require('arrow.statusline')
local vimode = require('feline.providers.vi_mode')
local c = {
vi_mode = {
@ -77,13 +76,6 @@ local function feline_config(_, opts)
str = ' ',
},
},
arrow = {
provider = function() return statusline.text_for_statusline_with_icons() end,
hl = {
fg = 'red',
style = 'bold',
},
},
file_size = {
provider = 'file_size',
hl = {

View File

@ -0,0 +1,33 @@
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' },
},
},
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 },
},
}