2021-06-02 01:28:51 +00:00
|
|
|
" coc.nvim
|
2021-06-03 18:05:15 +00:00
|
|
|
if executable('node')
|
|
|
|
packadd coc.nvim
|
|
|
|
|
|
|
|
highlight CocErrorSign ctermfg=Red guifg=#dc322f
|
|
|
|
highlight CocWarningSign ctermfg=Yellow guifg=#b58900
|
|
|
|
highlight CocInfoHighlight ctermfg=Blue guifg=#268bd2
|
|
|
|
|
|
|
|
let g:coc_disable_startup_warning = 1
|
|
|
|
|
|
|
|
nmap <silent> [g <Plug>(coc-diagnostic-prev)
|
|
|
|
nmap <silent> ]g <Plug>(coc-diagnostic-next)
|
|
|
|
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)
|
|
|
|
|
|
|
|
if has('nvim-0.4.0') || has('patch-8.2.0750')
|
|
|
|
nnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
|
|
|
|
nnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
|
|
|
|
inoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(1)\<cr>" : "\<Right>"
|
|
|
|
inoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(0)\<cr>" : "\<Left>"
|
|
|
|
vnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
|
|
|
|
vnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
|
|
|
|
endif
|
|
|
|
|
|
|
|
inoremap <expr><tab> pumvisible() ? '<C-y>' : '<tab>'
|
|
|
|
inoremap <expr><cr> pumvisible() ? '<C-e><cr>' : '<cr>'
|
|
|
|
endif
|
2021-06-02 01:28:51 +00:00
|
|
|
|
2019-02-02 18:40:54 +00:00
|
|
|
" fzf
|
2021-06-03 18:05:15 +00:00
|
|
|
if executable('fzf')
|
|
|
|
packadd fzf.vim
|
|
|
|
packadd fzf
|
|
|
|
|
|
|
|
let $FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -f -g "" 2> /dev/null'
|
|
|
|
let g:fzf_colors = {
|
|
|
|
\ 'bg': ['bg', 'Normal'],
|
|
|
|
\ 'bg+': ['bg', 'CursorLine', 'CursorColumn'],
|
|
|
|
\ 'border': ['fg', 'Ignore'],
|
|
|
|
\ 'fg': ['fg', 'Normal'],
|
|
|
|
\ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
|
|
|
|
\ 'header': ['fg', 'Comment'],
|
|
|
|
\ 'hl': ['fg', 'Comment'],
|
|
|
|
\ 'hl+': ['fg', 'Statement'],
|
|
|
|
\ 'info': ['fg', 'PreProc'],
|
|
|
|
\ 'marker': ['fg', 'Keyword'],
|
|
|
|
\ 'pointer': ['fg', 'Exception'],
|
|
|
|
\ 'prompt': ['fg', 'Conditional'],
|
|
|
|
\ 'spinner': ['fg', 'Label'],
|
|
|
|
\ }
|
|
|
|
|
|
|
|
if has('windows')
|
|
|
|
let g:fzf_preview_window = ''
|
|
|
|
endif
|
|
|
|
|
|
|
|
nnoremap <silent><leader>fg :GFiles<cr>
|
|
|
|
nnoremap <silent><leader>ff :Files ~<cr>
|
|
|
|
nnoremap <silent><leader>fh :History<cr>
|
|
|
|
nnoremap <silent><leader>fc :BCommits<cr>
|
|
|
|
nnoremap <silent><leader>fb :Buffers<cr>
|
|
|
|
nnoremap <silent><leader>fl :Lines<cr>
|
2021-01-20 04:38:57 +00:00
|
|
|
endif
|
2019-02-02 18:40:54 +00:00
|
|
|
|
2015-01-29 14:47:01 +00:00
|
|
|
" vim-airline
|
|
|
|
let g:airline#extensions#tabline#enabled = 1
|
2020-04-29 02:14:42 +00:00
|
|
|
let g:airline_symbols_ascii = 1
|
2015-01-29 14:47:01 +00:00
|
|
|
|
2021-06-03 18:05:15 +00:00
|
|
|
" vim-argwrap
|
|
|
|
nnoremap <silent><leader>a :ArgWrap<cr>
|
|
|
|
|
2021-06-03 19:30:02 +00:00
|
|
|
" vim-better-whitespace
|
|
|
|
highlight ExtraWhitespace ctermbg=DarkMagenta guibg=#6c71c4
|
|
|
|
|
2020-08-15 19:42:40 +00:00
|
|
|
" vim-dirvish
|
|
|
|
let g:dirvish_mode = ':sort ,^.*[\/],'
|
|
|
|
|
2021-01-10 02:21:03 +00:00
|
|
|
" vim-easy-align
|
|
|
|
let g:easy_align_ignore_groups = []
|
2021-06-03 18:05:15 +00:00
|
|
|
nmap ga <plug>(EasyAlign)
|
|
|
|
vmap <cr> <plug>(EasyAlign)
|
2021-01-10 02:21:03 +00:00
|
|
|
|
2015-06-17 07:57:52 +00:00
|
|
|
" vim-go
|
|
|
|
let g:go_fmt_command = 'goimports'
|
2019-06-30 18:40:08 +00:00
|
|
|
let g:go_null_module_warning = 0
|
2020-01-06 06:01:53 +00:00
|
|
|
let g:go_version_warning = 0
|
2015-06-17 07:57:52 +00:00
|
|
|
|
2019-06-09 19:14:37 +00:00
|
|
|
" vim-header
|
|
|
|
let g:header_auto_add_header = 0
|
|
|
|
let g:header_field_author = 'Alex Yatskov'
|
|
|
|
let g:header_field_author_email = 'alex@foosoft.net'
|
|
|
|
let g:header_field_filename = 0
|
|
|
|
|
2021-05-23 04:58:53 +00:00
|
|
|
" vim-interestingwords
|
|
|
|
let g:interestingWordsGUIColors = ['#8ccbea', '#a4e57e', '#ffdb72', '#ff7272', '#ffb3ff', '#9999ff']
|
2017-10-04 17:02:36 +00:00
|
|
|
let g:interestingWordsTermColors = ['154', '121', '211', '137', '214', '222']
|