From 75f2079ddf60f8901bd436e1cb908c189a8a9037 Mon Sep 17 00:00:00 2001 From: Pablu Date: Wed, 29 Jul 2026 08:36:58 +0200 Subject: Add jj and herdr --- dot_config/nvim/lua/plugins/herdr.lua | 98 +++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 dot_config/nvim/lua/plugins/herdr.lua (limited to 'dot_config/nvim/lua/plugins/herdr.lua') diff --git a/dot_config/nvim/lua/plugins/herdr.lua b/dot_config/nvim/lua/plugins/herdr.lua new file mode 100644 index 0000000..d12f729 --- /dev/null +++ b/dot_config/nvim/lua/plugins/herdr.lua @@ -0,0 +1,98 @@ +return { + "lmilojevicc/herdr-splits.nvim", + cond = vim.env.HERDR_ENV == "1", + event = "VeryLazy", + + -- Keep the Neovim and Herdr halves on the same commit. + build = function() + require("herdr-splits").sync_herdr() + end, + + opts = { + auto_sync_herdr = true, + + -- Spatial navigation should stop at the outside edge. + -- Wrapping would make Ctrl+HJKL less predictable. + at_edge = "stop", + + -- Neovim split resizing is measured in cells. + neovim_amount = 3, + + -- Herdr pane resizing is a fraction of the terminal. + default_amount = 0.03, + + nav_keys = { + left = "", + down = "", + up = "", + right = "", + }, + + resize_keys = { + left = "", + down = "", + up = "", + right = "", + }, + }, + + keys = { + { + "", + function() + require("herdr-splits").move_cursor_left() + end, + desc = "Move left", + }, + { + "", + function() + require("herdr-splits").move_cursor_down() + end, + desc = "Move down", + }, + { + "", + function() + require("herdr-splits").move_cursor_up() + end, + desc = "Move up", + }, + { + "", + function() + require("herdr-splits").move_cursor_right() + end, + desc = "Move right", + }, + + { + "", + function() + require("herdr-splits").resize_left() + end, + desc = "Resize left", + }, + { + "", + function() + require("herdr-splits").resize_down() + end, + desc = "Resize down", + }, + { + "", + function() + require("herdr-splits").resize_up() + end, + desc = "Resize up", + }, + { + "", + function() + require("herdr-splits").resize_right() + end, + desc = "Resize right", + }, + }, +} -- cgit 1.3.1