-
-
Notifications
You must be signed in to change notification settings - Fork 139
Open
Description
Do you want to request a feature or report a bug? A bug
What is the current/expected behavior? current: deletes comments. Expected: leave comments alone
What version of vim-prettier
are you using - (output of :PrettierVersion
) ? 1.0.0-beta
What version of prettier
are you using - (output of :PrettierCliVersion
) ? 2.3.1
What is your prettier
executable path - (output of :PrettierCliPath
) ? ~/.vim/plugged/vim-prettier/node_modules/.bin/prettier
Did this work in previous versions of vim-prettier and/or prettier ? I don't know
With let g:prettier#autoformat=1
, create a new buffer and set ft=ruby
. Saving this buffer:
# My comment
puts 'hello'
Will modify it to:
puts 'hello'
My config file:
Plug 'prettier/vim-prettier', { 'do': 'npm install' }
let g:prettier#autoformat = 1
let g:prettier#autoformat_config_present = 0
let g:prettier#autoformat_require_pragma = 0
let g:prettier#exec_cmd_async = 1
let g:prettier#quickfix_enabled = 0
For those affected, a temporary fix in your .vimrc
:
autocmd BufRead,BufNewFile *.rb let g:prettier#autoformat = 0
Metadata
Metadata
Assignees
Labels
No labels