From 1d045d3c2ea7466d523b1bad64992d081d6de088 Mon Sep 17 00:00:00 2001 From: mitermayer Date: Sun, 3 Jun 2018 23:11:06 -0700 Subject: Adding documentation for prettier partial formatting --- doc/prettier.txt | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'doc/prettier.txt') diff --git a/doc/prettier.txt b/doc/prettier.txt index f32f2d5..ef25cf0 100644 --- a/doc/prettier.txt +++ b/doc/prettier.txt @@ -90,7 +90,24 @@ You can check what is the resolved `prettier` cli path by: You can check what is the resolved `prettier` cli version by: > :PrettierCliVersion -< + +You can send to prettier your entire buffer but ensure that it +formats only your selection. + +**note: ** differs from `:PrettierFragment` by sending the entire buffer +to prettier, allowing identation level to be preserved, but it requires +the whole file to be valid. +> + :PrettierPartial + +You can send to prettier your current selection as a fragment of same type as +the file being edited. + +**note: ** differs from `:PrettierPartial` by sending only the current selection +to prettier, this allows for faster formatting but wont preserve indentation. +> + :PrettierFragment + ============================================================================== CONFIGURATION *vim-prettier-configuration* -- cgit v1.3