From 864edb76bdd813a48d51b4033232783c0741d859 Mon Sep 17 00:00:00 2001 From: Nikolai Papin Date: Thu, 10 Jul 2025 02:57:49 +0300 Subject: [PATCH] feat: automatic relative numbers --- nvim/lua/plugins/relative-toggle.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 nvim/lua/plugins/relative-toggle.lua diff --git a/nvim/lua/plugins/relative-toggle.lua b/nvim/lua/plugins/relative-toggle.lua new file mode 100644 index 0000000..2fd09e1 --- /dev/null +++ b/nvim/lua/plugins/relative-toggle.lua @@ -0,0 +1,13 @@ +return { + "cpea2506/relative-toggle.nvim", + event = "BufEnter", + config = function () + require("relative-toggle").setup({ + pattern = "*", + events = { + on = { "BufEnter", "FocusGained", "InsertLeave", "WinEnter", "CmdlineLeave" }, + off = { "BufLeave", "FocusLost", "InsertEnter", "WinLeave", "CmdlineEnter" }, + }, + }) + end +}