Skip to content

Commit

Permalink
(chore) move lightline settings and augroups to seperate files
Browse files Browse the repository at this point in the history
  • Loading branch information
PrashanthaTP committed Aug 19, 2021
1 parent d42bcb0 commit 3784af7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions nvim/general/augroups.vim
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ fun! TrimWhitespace()
call winrestview(l:save)
endfun

augroup TRIM_WHITESPAC
augroup TRIM_WHITESPACE
autocmd!
autocmd BufWritePre * if !&binary && &ft !=# 'mail'
autocmd BufWritePre * if !&binary && &ft !=# 'mail'
\| call TrimWhitespace()
\| endif
augroup END
" }}}
"
augroup REMEMBER_FOLDS
autocmd!
autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent! loadview
augroup END
1 change: 1 addition & 0 deletions nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ let mapleader = "\<Space>"
source $LOCALAPPDATA/nvim/general/augroups.vim
source $LOCALAPPDATA/nvim/plugs/plugins.vim
source $LOCALAPPDATA/nvim/plugs/coc.vim
source $LOCALAPPDATA/nvim/plugs/lightline_v1.vim
source $LOCALAPPDATA/nvim/plugs/markdown.vim
source $LOCALAPPDATA/nvim/general/general.vim
source $LOCALAPPDATA/nvim/general/leader.vim
Expand Down

0 comments on commit 3784af7

Please sign in to comment.