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 return nil
end end
local options = params.options or {}
local format_options = { local format_options = {
insertSpaces = options.insertSpaces, insertSpaces = false,
tabSize = options.tabSize, tabSize = 1,
indentSize = options.tabSize or 4, indentSize = 1,
} }
return formatter.format_document(doc.content, format_options) return formatter.format_document(doc.content, format_options)