diff options
Diffstat (limited to 'src/Config.zig')
| -rw-r--r-- | src/Config.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Config.zig b/src/Config.zig index 1f11b65..900c2aa 100644 --- a/src/Config.zig +++ b/src/Config.zig | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | // TODO: Change this to proper TOML in the future :) | 1 | // TODO: Change this to proper TOML in the future :) |
| 2 | 2 | ||
| 3 | const conf = @import("es-config"); | ||
| 3 | const std = @import("std"); | 4 | const std = @import("std"); |
| 4 | 5 | ||
| 5 | const Allocator = std.mem.Allocator; | 6 | const Allocator = std.mem.Allocator; |
| @@ -8,9 +9,9 @@ const Config = @This(); | |||
| 8 | 9 | ||
| 9 | const config_path = "arkta/es/es.ini"; | 10 | const config_path = "arkta/es/es.ini"; |
| 10 | 11 | ||
| 11 | line_limit: usize = 100, | 12 | line_limit: usize = conf.default_line_limit, |
| 12 | page_overlap: usize = 2, | 13 | page_overlap: usize = conf.default_page_overlap, |
| 13 | tab_stop: usize = 8, | 14 | tab_stop: usize = conf.default_tab_stop, |
| 14 | 15 | ||
| 15 | pub fn readConfig(allocator: Allocator) !Config { | 16 | pub fn readConfig(allocator: Allocator) !Config { |
| 16 | var config = Config{}; | 17 | var config = Config{}; |