Adds :Format
This commit is contained in:
parent
b665d16bc5
commit
30396f438a
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ $# -ne 2 ]; then
|
||||
echo >&2 "errror: wrong number of arguments"
|
||||
echo >&2 "usage: compress-pdf <input> <output>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
gs -sDEVICE=pdfwrite -dPDFSETTINGS=/printer -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=$2 $1
|
3
init.vim
3
init.vim
|
@ -159,6 +159,9 @@ nmap <silent> gy <Plug>(coc-type-definition)
|
|||
nmap <silent> gi <Plug>(coc-implementation)
|
||||
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.
|
||||
nnoremap <silent> K :call <SID>show_documentation()<CR>
|
||||
|
||||
|
|
Loading…
Reference in New Issue