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
However, when I am formatting an XML file, the effective tabSize is 4, not 10 (or any other value I set). A tab size of 4 and the use of spaces are derived from my Neovim options. These options can been seen in the LSP logs for the lemminx server for formatting requests:
The xml.format.tabSize and xml.format.insertSpaces values do not end up in the formatting_options table and Neovim uses the global options for these fields, as documented, to format the file.
The options passed by the user in xml.format that are shared with FormattingOptions should override the latter.
I do not currently know if this is a lemminx issue or a Neovim LSP client issue.
The other options set in the xml.format seem to be working.
I am currently trying the
lemminx
server in Neovim and I'm having a hard time setting thetabSize
option. My config looks like this:However, when I am formatting an XML file, the effective
tabSize
is 4, not 10 (or any other value I set). A tab size of 4 and the use of spaces are derived from my Neovim options. These options can been seen in the LSP logs for thelemminx
server for formatting requests:The
xml.format.tabSize
andxml.format.insertSpaces
values do not end up in theformatting_options
table and Neovim uses the global options for these fields, as documented, to format the file.The options passed by the user in
xml.format
that are shared with FormattingOptions should override the latter.I do not currently know if this is a
lemminx
issue or a Neovim LSP client issue.The other options set in the
xml.format
seem to be working.LemMinX: 0.27.1
Neovim: v0.10.0
OS: Ubuntu 22.04.4 LTS
The text was updated successfully, but these errors were encountered: