fix: always use tabs for formatting, ignore editor insertSpaces

This commit is contained in:
2026-07-24 10:03:25 +02:00
parent d24e83a1a7
commit 909354e71a
+3 -4
View File
@@ -1805,11 +1805,10 @@ function handlers.textDocument_formatting(params)
return nil
end
local options = params.options or {}
local format_options = {
insertSpaces = options.insertSpaces,
tabSize = options.tabSize,
indentSize = options.tabSize or 4,
insertSpaces = false,
tabSize = 1,
indentSize = 1,
}
return formatter.format_document(doc.content, format_options)