From 2b6ae8473e1b0fb8cc0bd16aa8c485a77ee5e847 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 16 Mar 2021 21:54:42 +0100 Subject: renaming, treesitter buggy --- .config/nvim/lua/utils.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to '.config/nvim/lua/utils.lua') 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'}, + }, +}) -- cgit v1.2.3-70-g09d2