add goyo to nvim
This commit is contained in:
parent
863b68b62a
commit
748e0a4242
1 changed files with 18 additions and 6 deletions
|
@ -15,6 +15,9 @@ Plug 'christoomey/vim-tmux-navigator'
|
||||||
" winresizer
|
" winresizer
|
||||||
Plug 'simeji/winresizer'
|
Plug 'simeji/winresizer'
|
||||||
|
|
||||||
|
" goyo
|
||||||
|
Plug 'junegunn/goyo.vim'
|
||||||
|
|
||||||
" FILE MANAGEMENT
|
" FILE MANAGEMENT
|
||||||
" nerd-tree
|
" nerd-tree
|
||||||
Plug 'scrooloose/nerdtree'
|
Plug 'scrooloose/nerdtree'
|
||||||
|
@ -82,6 +85,7 @@ set wildmenu
|
||||||
set autoread
|
set autoread
|
||||||
set lazyredraw
|
set lazyredraw
|
||||||
set history=250
|
set history=250
|
||||||
|
set noshowmode
|
||||||
|
|
||||||
" tabs and line wrap
|
" tabs and line wrap
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
|
@ -134,12 +138,6 @@ nnoremap <leader>h :set rnu!<CR>
|
||||||
: autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
|
: autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
|
||||||
:augroup END
|
:augroup END
|
||||||
|
|
||||||
" disable arrow keys
|
|
||||||
noremap <Up> <Nop>
|
|
||||||
noremap <Down> <Nop>
|
|
||||||
noremap <Left> <Nop>
|
|
||||||
noremap <Right> <Nop>
|
|
||||||
|
|
||||||
" auto expand brackets
|
" auto expand brackets
|
||||||
inoremap (; (<CR>)<C-c>O
|
inoremap (; (<CR>)<C-c>O
|
||||||
inoremap (, (<CR>),<C-c>O
|
inoremap (, (<CR>),<C-c>O
|
||||||
|
@ -274,6 +272,20 @@ lua require'colorizer'.setup()
|
||||||
" tmux setup
|
" tmux setup
|
||||||
let g:tmuxcomplete#trigger = ''
|
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 <SID>goyo_enter()
|
||||||
|
autocmd! User GoyoLeave nested call <SID>goyo_leave()
|
||||||
|
|
||||||
" Coc vim setup
|
" Coc vim setup
|
||||||
set hidden
|
set hidden
|
||||||
set updatetime=300
|
set updatetime=300
|
||||||
|
|
Loading…
Add table
Reference in a new issue