Open Nishant-Pall opened 3 years ago
Hello, you found a solution? I have the same problem :(
Hey, I didnt fix it but I did reset my neovim and everything and never encountered this again. Maybe that'll help you. I did switch to 0.6 neovim maybe that's the reason
I had the same issue and I think it was to do with this
" use tabs instead of spaces: true, false, or auto (use the expandtab setting).
" default: 'auto'
let g:prettier#config#use_tabs = 'auto'
To solve this you need to add let g:prettier#config#use_tabs = 'false'
to your .vimrc
. Then you can use let g:prettier#config#tab_width = 2
as intended.
What is the current/expected behavior? whenever I execute
:Prettier
it's using tab spaces as 2, even though I have set the value aslet g:prettier#config#tab_width = 4
What version of
vim-prettier
are you using - (output of:PrettierVersion
) ? 1.0.0-betaWhat version of
prettier
are you using - (output of:PrettierCliVersion
) ? 2.3.1What is your
prettier
executable path - (output of:PrettierCliPath
) ? .config/nvim/vim-prettier/node_modules/.bin/prettierDid this work in previous versions of vim-prettier and/or prettier ? No