You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vim 8.0 (MS-Windows 64-bit GUI version with OLE support)
vimrc
Plug 'mitermayer/vim-prettier', {
\ 'do': 'yarn install',
\ 'for': ['javascript', 'typescript', 'css', 'less', 'scss'] }
" Disable auto formatting of files that have @format tag
let g:prettier#autoformat = 0
" max line lengh that prettier will wrap on
let g:prettier#config#print_width = 80
" number of spaces per indentation level
let g:prettier#config#tab_width = 4
" use tabs over spaces
let g:prettier#config#use_tabs = 'false'
" print semicolons
let g:prettier#config#semi = 'true'
" single quotes over double quotes
let g:prettier#config#single_quote = 'true'
nnoremap <silent><c-f> :Prettier<CR>
Probrem
origin code
function aLongLongLongFunction(barbarbar, foofoofoo, boobooboo, barbarbar, balabalabala) {
console.log('lalalala');
}
after prettier
function aLongLongLongFunction(
barbarbar,
foofoofoo,
boobooboo,
barbarbar,
balabalabala, // add an extra comma here
) {
console.log('lalalala');
}
The text was updated successfully, but these errors were encountered:
vim version:
Vim 8.0 (MS-Windows 64-bit GUI version with OLE support)
vimrc
Probrem
origin code
after prettier
The text was updated successfully, but these errors were encountered: