Adds :Format

This commit is contained in:
Thomas Forgione 2021-10-11 14:10:52 +02:00 committed by Thibault Blanc-Beyne
parent 54e0c89967
commit aefbefc503
1 changed files with 3 additions and 0 deletions

View File

@ -159,6 +159,9 @@ nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation) nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references) nmap <silent> gr <Plug>(coc-references)
" Add `:Format` command to format current buffer.
command! -nargs=0 Format :call CocAction('format')
" Use K to show documentation in preview window. " Use K to show documentation in preview window.
nnoremap <silent> K :call <SID>show_documentation()<CR> nnoremap <silent> K :call <SID>show_documentation()<CR>