summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/settings.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/settings.lua')
-rw-r--r--.config/nvim/lua/settings.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua
index 7ad52c6..e75bb02 100644
--- a/.config/nvim/lua/settings.lua
+++ b/.config/nvim/lua/settings.lua
@@ -34,3 +34,14 @@ vim.o.timeoutlen=100 --By default timeoutlen is 1000 ms
vim.o.clipboard="unnamedplus" --Copy paste between vim and everything else
vim.o.incsearch=true
vim.o.guifont="SpaceMono\\ Nerd\\ Font\\ Mono:h18"
+
+-- relative line numbers
+-- vim.cmd('set number relativenumber')
+--[[ local u = require('utils')
+
+u.define_augroups({
+ numbertoggle = {
+ {'BufEnter', 'FocusGained', 'InsertLeave * set relativenumber'},
+ {'BufLeave', 'FocusLost', 'InsertEnter * set norelativenumber'},
+ },
+}) ]]