diff options
| author | 2022-01-02 00:17:47 +0200 | |
|---|---|---|
| committer | 2022-01-02 00:17:47 +0200 | |
| commit | bd3101517b7b2d0d81f2014eb3c2613e82b25def (patch) | |
| tree | 72cffbbcdc2be0f22987e1a4cb20892fbc3db052 /src/Config.zig | |
| parent | changes (diff) | |
| download | es-bd3101517b7b2d0d81f2014eb3c2613e82b25def.tar.gz es-bd3101517b7b2d0d81f2014eb3c2613e82b25def.tar.xz es-bd3101517b7b2d0d81f2014eb3c2613e82b25def.zip | |
hierarchy changes
Diffstat (limited to 'src/Config.zig')
| -rw-r--r-- | src/Config.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Config.zig b/src/Config.zig index 071c31b..2e6c388 100644 --- a/src/Config.zig +++ b/src/Config.zig | |||
| @@ -1,6 +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 es = @import("root"); |
| 4 | const std = @import("std"); | 4 | const std = @import("std"); |
| 5 | 5 | ||
| 6 | const Allocator = std.mem.Allocator; | 6 | const Allocator = std.mem.Allocator; |
| @@ -9,10 +9,10 @@ const Config = @This(); | |||
| 9 | 9 | ||
| 10 | const config_path = "arkta/es/es.ini"; | 10 | const config_path = "arkta/es/es.ini"; |
| 11 | 11 | ||
| 12 | hard_tabs: bool = conf.default_hard_tabs, | 12 | hard_tabs: bool = es.conf.default_hard_tabs, |
| 13 | line_limit: usize = conf.default_line_limit, | 13 | line_limit: usize = es.conf.default_line_limit, |
| 14 | page_overlap: usize = conf.default_page_overlap, | 14 | page_overlap: usize = es.conf.default_page_overlap, |
| 15 | tab_stop: usize = conf.default_tab_stop, | 15 | tab_stop: usize = es.conf.default_tab_stop, |
| 16 | 16 | ||
| 17 | pub fn readConfig(allocator: Allocator) !Config { | 17 | pub fn readConfig(allocator: Allocator) !Config { |
| 18 | var config = Config{}; | 18 | var config = Config{}; |