diff --git a/nvim/.config/nvim/lazy-lock.json b/nvim/.config/nvim/lazy-lock.json index 7973a1a..bb4e7bc 100644 --- a/nvim/.config/nvim/lazy-lock.json +++ b/nvim/.config/nvim/lazy-lock.json @@ -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" }, diff --git a/nvim/.config/nvim/lua/plugins/arrow.lua b/nvim/.config/nvim/lua/plugins/arrow.lua deleted file mode 100644 index d773e02..0000000 --- a/nvim/.config/nvim/lua/plugins/arrow.lua +++ /dev/null @@ -1,22 +0,0 @@ -return { - { - "otavioschwanck/arrow.nvim", - opts = { - show_icons = true, - leader_key = '-', - buffer_leader_key = 'm', - }, - keys = { - { "1", function() require("arrow.persist").go_to(1) end }, - { "2", function() require("arrow.persist").go_to(2) end }, - { "3", function() require("arrow.persist").go_to(3) end }, - { "4", function() require("arrow.persist").go_to(4) end }, - { "5", function() require("arrow.persist").go_to(5) end }, - { "6", function() require("arrow.persist").go_to(6) end }, - { "7", function() require("arrow.persist").go_to(7) end }, - { "8", function() require("arrow.persist").go_to(8) end }, - { "9", function() require("arrow.persist").go_to(9) end }, - { "0", function() require("arrow.persist").go_to(10) end }, - } - } -} diff --git a/nvim/.config/nvim/lua/plugins/feline.lua b/nvim/.config/nvim/lua/plugins/feline.lua index 7fff2bf..f13a7b3 100644 --- a/nvim/.config/nvim/lua/plugins/feline.lua +++ b/nvim/.config/nvim/lua/plugins/feline.lua @@ -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 = { diff --git a/nvim/.config/nvim/lua/plugins/rabbit.lua b/nvim/.config/nvim/lua/plugins/rabbit.lua new file mode 100644 index 0000000..8ae9005 --- /dev/null +++ b/nvim/.config/nvim/lua/plugins/rabbit.lua @@ -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 = { '-', ';' }, + }, + plugin_opts = { + history = { switch = ';' }, + harpoon = { switch = 'f' }, + }, + }, + keys = { + { '1', function() rabbit_select(1) end }, + { '2', function() rabbit_select(2) end }, + { '3', function() rabbit_select(3) end }, + { '4', function() rabbit_select(4) end }, + { '5', function() rabbit_select(5) end }, + { '6', function() rabbit_select(6) end }, + { '7', function() rabbit_select(7) end }, + { '8', function() rabbit_select(8) end }, + { '9', function() rabbit_select(9) end }, + { '0', function() rabbit_select(10) end }, + }, +}