diff options
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/init.vim | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index b152723..194624a 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -40,9 +40,16 @@ nnoremap <SPACE> <Nop> let mapleader=" " set shiftwidth=2 -set number set mouse=a +" ruler +set relativenumber number +augroup numbertoggle + autocmd! + autocmd BufEnter,WinEnter * if &nu && mode() != 'i' | set relativenumber | endif + autocmd BufLeave,WinLeave * if &nu | set norelativenumber | endif +augroup END + colorscheme darcula hi Normal guibg=NONE ctermbg=NONE |