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
![image](https://user-images.githubusercontent.com/53701892/221668484-875f15a3-468a-471e-83d9-3ddfa95f8f11.png)
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