diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 811bb55..d1af74a 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -83,6 +83,7 @@ Plug 'edkolev/tmuxline.vim' " Colorschemes Plug 'Nequo/vim-allomancer' Plug 'morhetz/gruvbox' +Plug 'nightsense/snow' call plug#end() endif @@ -135,9 +136,9 @@ augroup textobj_sentence augroup END " PLUGIN: vim-pencil -" set default wrap mode to hard - I should test which mode works better for -" me, though I would venture a guess that hard is preferable -let g:pencil#wrapModeDefault = 'hard' " default is 'hard' +" set default wrap mode to hard - TODO test which mode works better for +" me, it seems hardmode has trouble with markdown lists (see issue #31) +let g:pencil#wrapModeDefault = 'soft' " default is 'hard' " PLUGIN: goyo " set up functions for entering/exiting distraction free mode, or leaving it @@ -146,12 +147,15 @@ function! s:goyo_enter() silent !tmux set status off " maximize the tmux pane that vim is in if any (usually I have vim open as the only pane) silent !tmux list-panes -F '\#F' | grep -q Z || tmux resize-pane -Z + " disable line highlighting, we really don't need it for prose + set nocursorline " enable limelight which highlights whatever paragraph you are in and lowlights the rest Limelight endfunction function! s:goyo_leave() silent !tmux set status on silent !tmux list-panes -F '\#F' | grep -q Z && tmux resize-pane -Z + set cursorline Limelight! endfunction " actually call the functions on entering/leaving goyo @@ -182,7 +186,7 @@ let g:ale_fixers = { " PLUGIN: TMUXLINE let g:airline_powerline_fonts=1 let g:airline_theme='raven' -colorscheme allomancer +colorscheme gruvbox " disable automatically refreshing the mux statusbar since it breaks tmux " prefix highlighting. Instead, when changing vim statusbar just create