mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
chore(vim): rename plugin configuration folder
This commit is contained in:
30
nvim/plugin-config/goyo.vim
Normal file
30
nvim/plugin-config/goyo.vim
Normal file
@@ -0,0 +1,30 @@
|
||||
" Goyo
|
||||
" https://github.com/junegunn/goyo.vim
|
||||
|
||||
function! s:goyo_enter()
|
||||
if executable('tmux') && strlen($TMUX)
|
||||
silent !tmux set status off
|
||||
silent !tmux list-panes -F '\#F' | grep -q Z || tmux resize-pane -Z
|
||||
endif
|
||||
set noshowmode
|
||||
set noshowcmd
|
||||
set scrolloff=999
|
||||
Gitsigns toggle_signs
|
||||
endfunction
|
||||
|
||||
function! s:goyo_leave()
|
||||
if executable('tmux') && strlen($TMUX)
|
||||
silent !tmux set status on
|
||||
silent !tmux list-panes -F '\#F' | grep -q Z && tmux resize-pane -Z
|
||||
endif
|
||||
set showmode
|
||||
set showcmd
|
||||
set scrolloff=8
|
||||
Gitsigns toggle_signs
|
||||
endfunction
|
||||
|
||||
autocmd! User GoyoEnter nested call <SID>goyo_enter()
|
||||
autocmd! User GoyoLeave nested call <SID>goyo_leave()
|
||||
|
||||
" Mappings
|
||||
noremap <leader>z :Goyo<CR>
|
||||
Reference in New Issue
Block a user