Skip to content

Instantly share code, notes, and snippets.

@zu-min
Last active December 21, 2019 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zu-min/cbfd1493225df929f3cb5625b2b5796a to your computer and use it in GitHub Desktop.
Save zu-min/cbfd1493225df929f3cb5625b2b5796a to your computer and use it in GitHub Desktop.
[[plugins]]
repo = 'nathanaelkane/vim-indent-guides'
[[plugins]]
repo = 'tpope/vim-dispatch'
hook_add = '''
let g:dispatch_quickfix_height = 30
'''
[[plugins]]
repo = 'janko/vim-test'
depends = ['vim-dispatch']
hook_add = '''
let test#strategy = 'dispatch'
'''
[[plugins]]
repo = 'junegunn/fzf'
build = './install --all'
dir = '~/.fzf'
[[plugins]]
repo = 'junegunn/fzf.vim'
depends = ['junegunn/fzf']
hook_add = '''
" for Files
let $FZF_DEFAULT_OPTS='--height 100% --reverse --border --bind=ctrl-j:preview-down --bind=ctrl-k:preview-up'
let $FZF_DEFAULT_COMMAND = 'ag --hidden --ignore .git -g ""'
" for Ag
command! -bang -nargs=* Ag
\ call fzf#vim#ag(<q-args>, fzf#vim#with_preview(), <bang>0)
command! -bang -nargs=* FZFMru call fzf#vim#history(fzf#vim#with_preview())
'''
[[plugins]]
repo = 'neoclide/coc.nvim'
if = '''executable('node') && executable('yarn')'''
build = 'yarn install --frozen-lockfile'
merged = '0'
hook_add = '''
let g:coc_global_extensions = [
\ 'coc-tabnine'
\]
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
nnoremap <C-]> g<C-]>
" Remap for rename current word
nmap <leader>rn <Plug>(coc-rename)
" Highlight symbol under cursor on CursorHold
autocmd CursorHold * silent call CocActionAsync('highlight')
" Use K for show documentation in preview window
nnoremap <silent> K :call <SID>show_documentation()<CR>
function! s:show_documentation()
if &filetype == 'vim'
execute 'h '.expand('<cword>')
else
call CocAction('doHover')
endif
endfunction
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment