This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
Need help with prettier range formatting #1424
Unanswered
aftabakhtar
asked this question in
Q&A
Replies: 1 comment
-
After tinkering around, I have found that the issue wasn't related to null-ls and everything seems to be working fine. This discussion can be closed/resolved. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to setup
prettier
throughnull-ls
and everything else is working perfectly except range/selection formatting. I am using the following configuration for setting up sources:I am using prettier to format my typescript code which works when formatting complete buffers but range formatting is not working correctly and I think I have narrowed down the issue.
As per my suspicion, the issue is occurring because whenever lsp is attached and prettier becomes an active source for formatting it changes
formatexpr
toFixedgq
as can be seen in the image attached.Note: formatters other than prettier that support range formatting works flawlessly and do not replace/change
formatexpr
Any help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions