diff --git a/nvim/init.vim b/nvim/init.vim index ed7616a..f1002f2 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -15,6 +15,9 @@ Plug 'christoomey/vim-tmux-navigator' " winresizer Plug 'simeji/winresizer' +" goyo +Plug 'junegunn/goyo.vim' + " FILE MANAGEMENT " nerd-tree Plug 'scrooloose/nerdtree' @@ -82,6 +85,7 @@ set wildmenu set autoread set lazyredraw set history=250 +set noshowmode " tabs and line wrap set tabstop=4 @@ -134,12 +138,6 @@ nnoremap h :set rnu! : autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber :augroup END -" disable arrow keys -noremap -noremap -noremap -noremap - " auto expand brackets inoremap (; ()O inoremap (, (),O @@ -274,6 +272,20 @@ lua require'colorizer'.setup() " tmux setup let g:tmuxcomplete#trigger = '' +" GOYO +function! s:goyo_enter() + set noshowcmd + set scrolloff=999 +endfunction + +function! s:goyo_leave() + set showcmd + set scrolloff=1 +endfunction + +autocmd! User GoyoEnter nested call goyo_enter() +autocmd! User GoyoLeave nested call goyo_leave() + " Coc vim setup set hidden set updatetime=300