dotfiles/.vimrc.plugins-settings

50 lines
1.6 KiB
Plaintext
Raw Normal View History

2019-02-22 15:50:11 +00:00
" plugins: airline
let g:bufferline_echo = 0
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
2019-07-07 12:08:00 +01:00
au BufWrite * :Autoformat
2019-02-22 15:50:11 +00:00
" plugins: rust
let g:rustfmt_autosave = 1
" searching
2020-07-24 22:54:17 +01:00
let $FZF_DEFAULT_COMMAND = 'rg --files --no-messages "" .'
set grepprg=rg\ --vimgrep
2019-02-22 15:50:11 +00:00
let g:fzf_command_prefix = 'Fzf'
2020-07-24 22:54:17 +01:00
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --no-ignore --hidden --follow --glob "!.git/*" --color "always" '.shellescape(<q-args>), 1, <bang>0)
2019-02-22 16:08:40 +00:00
let g:ctrlp_show_hidden = 1
2020-07-24 22:54:17 +01:00
let g:ctrlp_user_command = 'rg %s --files --hidden --color=never --glob ""'
2019-02-22 15:50:11 +00:00
" nerdtree startup
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif
2019-02-23 09:15:44 +00:00
2020-05-02 10:49:49 +01:00
" rainbow
let g:rainbow_active = 1
2020-05-02 10:05:10 +01:00
" coc
set shortmess+=c
set signcolumn=yes
autocmd CursorHold * silent call CocActionAsync('highlight')
augroup mygroup
autocmd!
" Setup formatexpr specified filetype(s).
autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected')
" Update signature help on jump placeholder.
autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
augroup end
command! -nargs=0 Format :call CocAction('format')
command! -nargs=? Fold :call CocAction('fold', <f-args>)
command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport')
set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')}
2020-09-06 00:21:46 +01:00
" ack
let g:ackprg = 'rg --vimgrep --smart-case'
let g:ack_autoclose = 1
let g:ack_use_cword_for_empty_search = 1