nvim: replace arrow with rabbit plugin
This commit is contained in:
@@ -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 },
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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 = {
|
||||
|
||||
33
nvim/.config/nvim/lua/plugins/rabbit.lua
Normal file
33
nvim/.config/nvim/lua/plugins/rabbit.lua
Normal 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 },
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user