From 909354e71aeaf0647e4f2897cda021a9bf508c55 Mon Sep 17 00:00:00 2001 From: Lazar Bulovan Date: Fri, 24 Jul 2026 10:03:25 +0200 Subject: [PATCH] fix: always use tabs for formatting, ignore editor insertSpaces --- src/main.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.lua b/src/main.lua index 6312d81..1ba3d10 100644 --- a/src/main.lua +++ b/src/main.lua @@ -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)