Skip to content

Commit

Permalink
feat: make Prettier use its config file
Browse files Browse the repository at this point in the history
Using vim-prettier seemed to not respect the new default for
`trailingComma` which is `"all"` since Prettier 3.0.0

Turns out it was using its own setting `"es5"` instead. Setting the
`config_precedence` makes Prettier itself use a config file if it finds
one.
  • Loading branch information
matijs committed Aug 28, 2024
1 parent 7ace822 commit 446522f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,6 @@ noremap <up> <nop>
noremap <right> <nop>
noremap <down> <nop>
noremap <left> <nop>
" Make sure vim-prettier makes Prettier use a prettier config file if one is
" present
let g:prettier#config#config_precedence = 'prefer-file'

0 comments on commit 446522f

Please sign in to comment.