aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/config.odin1
-rw-r--r--src/server/format.odin1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/common/config.odin b/src/common/config.odin
index 387e8b8..d90e5fa 100644
--- a/src/common/config.odin
+++ b/src/common/config.odin
@@ -28,6 +28,7 @@ Config :: struct {
Format_Config :: struct {
tabs: bool,
characters: int,
+ spaces: int,
}
config: Config; \ No newline at end of file
diff --git a/src/server/format.odin b/src/server/format.odin
index 4c51943..3cf8de6 100644
--- a/src/server/format.odin
+++ b/src/server/format.odin
@@ -21,6 +21,7 @@ get_complete_format :: proc(document: ^common.Document, config: ^common.Config)
style := printer.default_style
style.max_characters = config.formatter.characters
style.tabs = config.formatter.tabs
+ style.spaces = config.formatter.spaces
prnt := printer.make_printer(style, context.temp_allocator)