aboutsummaryrefslogtreecommitdiff
path: root/autoload/prettier.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/prettier.vim')
-rw-r--r--autoload/prettier.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/autoload/prettier.vim b/autoload/prettier.vim
index d4c3171..ebe6abd 100644
--- a/autoload/prettier.vim
+++ b/autoload/prettier.vim
@@ -36,7 +36,9 @@ endfunction
" Allows @format and @prettier pragma support upon saving
function! prettier#Autoformat(...) abort
- call prettier#Prettier(1, 1, line('$'), 0, { 'requirePragma': 'true'})
+ call prettier#Prettier(1, 1, line('$'), 0, {
+ \ 'requirePragma': g:prettier#autoformat_require_pragma ? 'true' : 'false'
+ \ })
endfunction
" Main prettier command