add small fixes for prose mode & good prose theme

This commit is contained in:
Marty Oehme 2019-03-20 22:25:21 +01:00
parent bb092b628b
commit 2136b3eb97

View file

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