summaryrefslogtreecommitdiff
path: root/.config/nvim/general
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-03-07 22:40:28 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-03-07 22:40:28 +0100
commit553530387aaf6a442a33eba3f7b43b8911fc4bb8 (patch)
treefd00a8322eea975b1633af9faf778432d5292673 /.config/nvim/general
parent7eae457654052897a8d5ca55e5a8217d4ab9f78c (diff)
Add new arch configs, messed up color theme
Diffstat (limited to '.config/nvim/general')
-rw-r--r--.config/nvim/general/settings.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/nvim/general/settings.vim b/.config/nvim/general/settings.vim
index 47066ef..b348267 100644
--- a/.config/nvim/general/settings.vim
+++ b/.config/nvim/general/settings.vim
@@ -45,3 +45,12 @@ au CursorHold * checktime
" You can't stop me
cmap w!! w !sudo tee %
+
+" Relative line numbers
+:set number relativenumber
+
+:augroup numbertoggle
+: autocmd!
+: autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
+: autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
+:augroup END