From ef3986e99f0e0bba2c97fb63e89c4085e68aaa91 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Mon, 11 Oct 2021 14:10:52 +0200 Subject: [PATCH] Adds :Format --- init.vim | 3 +++ 1 file changed, 3 insertions(+) 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()