diff --git a/init.vim b/init.vim index 0fdb498..e0de819 100644 --- a/init.vim +++ b/init.vim @@ -159,6 +159,9 @@ nmap gy (coc-type-definition) nmap gi (coc-implementation) nmap gr (coc-references) +" Add `:Format` command to format current buffer. +command! -nargs=0 Format :call CocAction('format') + " Use K to show documentation in preview window. nnoremap K :call show_documentation()