mirror of https://github.com/mitchell/dotfiles.git
Rework Goyo configuration for nvim
This commit is contained in:
parent
7c8bfd810a
commit
8be244b28a
17
.vimrc
17
.vimrc
|
@ -10,9 +10,10 @@ Plug 'itchyny/lightline.vim'
|
||||||
Plug 'edkolev/tmuxline.vim'
|
Plug 'edkolev/tmuxline.vim'
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
Plug 'vimwiki/vimwiki'
|
Plug 'vimwiki/vimwiki'
|
||||||
Plug 'junegunn/goyo.vim'
|
|
||||||
Plug 'junegunn/fzf'
|
Plug 'junegunn/fzf'
|
||||||
Plug 'reedes/vim-pencil', { 'on': ['HardPencil', 'SoftPencil'] }
|
Plug 'reedes/vim-pencil', { 'on': ['HardPencil', 'SoftPencil'] }
|
||||||
|
Plug 'junegunn/goyo.vim', { 'on': 'Goyo'}
|
||||||
|
Plug 'junegunn/limelight.vim', { 'on': 'Limelight' }
|
||||||
|
|
||||||
if !exists('g:vscode')
|
if !exists('g:vscode')
|
||||||
Plug 'morhetz/gruvbox'
|
Plug 'morhetz/gruvbox'
|
||||||
|
@ -27,7 +28,6 @@ if !exists('g:vscode')
|
||||||
Plug 'mileszs/ack.vim', { 'on': 'Ack' }
|
Plug 'mileszs/ack.vim', { 'on': 'Ack' }
|
||||||
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
||||||
Plug 'mcchrish/nnn.vim', { 'on': 'NnnPicker' }
|
Plug 'mcchrish/nnn.vim', { 'on': 'NnnPicker' }
|
||||||
Plug 'junegunn/limelight.vim', { 'on': 'Limelight' }
|
|
||||||
|
|
||||||
" Language specific plugins
|
" Language specific plugins
|
||||||
Plug 'dart-lang/dart-vim-plugin'
|
Plug 'dart-lang/dart-vim-plugin'
|
||||||
|
@ -88,7 +88,9 @@ nnoremap <leader>a :Ack<cr>
|
||||||
nnoremap <leader>we :VimwikiAll2HTML<cr>
|
nnoremap <leader>we :VimwikiAll2HTML<cr>
|
||||||
nnoremap <leader>wz :VimwikiIndex<cr> :Goyo<cr>
|
nnoremap <leader>wz :VimwikiIndex<cr> :Goyo<cr>
|
||||||
nnoremap <leader>wg :VimwikiGoto
|
nnoremap <leader>wg :VimwikiGoto
|
||||||
nnoremap <leader>z :Goyo 101x100%<cr>
|
nnoremap <leader>z :Goyo<cr>
|
||||||
|
nnoremap <leader>Z :Goyo 101x100%<cr>
|
||||||
|
nnoremap <leader>l :Limelight<cr>
|
||||||
|
|
||||||
" Allows you to use // in order to search for the visually selected text
|
" Allows you to use // in order to search for the visually selected text
|
||||||
vnoremap // y/\V<C-R>=escape(@",'/\')<CR><CR>
|
vnoremap // y/\V<C-R>=escape(@",'/\')<CR><CR>
|
||||||
|
@ -174,6 +176,8 @@ let g:vimwiki_list = [{'path': expand('~/.wiki/')}]
|
||||||
let g:nnn#layout = {'left': '~20%'}
|
let g:nnn#layout = {'left': '~20%'}
|
||||||
let g:nnn#command = 'nnn -eHo'
|
let g:nnn#command = 'nnn -eHo'
|
||||||
|
|
||||||
|
let g:limelight_conceal_ctermfg = 'darkgrey'
|
||||||
|
|
||||||
augroup ft_jsx
|
augroup ft_jsx
|
||||||
au!
|
au!
|
||||||
autocmd BufNewFile,BufRead *.jsx set filetype=javascript.jsx
|
autocmd BufNewFile,BufRead *.jsx set filetype=javascript.jsx
|
||||||
|
@ -205,3 +209,10 @@ else
|
||||||
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
|
let &t_SI = "\<Esc>]50;CursorShape=1\x7"
|
||||||
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
|
let &t_EI = "\<Esc>]50;CursorShape=0\x7"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
augroup goyo_hooks
|
||||||
|
au!
|
||||||
|
autocmd User GoyoEnter Limelight
|
||||||
|
autocmd User GoyoLeave Limelight!
|
||||||
|
autocmd User GoyoLeave hi Normal ctermbg=NONE
|
||||||
|
augroup END
|
||||||
|
|
Loading…
Reference in New Issue