summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/utils.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/utils.lua')
-rw-r--r--.config/nvim/lua/utils.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/nvim/lua/utils.lua b/.config/nvim/lua/utils.lua
index b5f1413..d892729 100644
--- a/.config/nvim/lua/utils.lua
+++ b/.config/nvim/lua/utils.lua
@@ -29,3 +29,10 @@ define_augroups(
},
}
)
+
+define_augroups({
+ numbertoggle = {
+ {'BufEnter,FocusGained,InsertLeave', '*', 'set relativenumber'},
+ {'BufLeave,FocusLost,InsertEnter', '*', 'set norelativenumber'},
+ },
+})