2020-05-09 14:43:51 +01:00
// Configuration options for zls.
2020-05-09 20:42:35 +01:00
/// Whether to enable snippet completions
2020-05-19 20:09:00 +01:00
enable_snippets : bool = false ,
2020-05-14 00:10:41 +01:00
2022-07-08 09:13:46 +01:00
/// Whether to enable unused variable warnings
enable_unused_variable_warnings : bool = false ,
2022-07-09 10:22:02 +01:00
/// Whether to enable import/embedFile argument completions (NOTE: these are triggered manually as updating the autotrigger characters may cause issues)
enable_import_embedfile_argument_completions : bool = false ,
2022-07-11 14:45:31 +01:00
/// Zig library path
2020-05-14 02:54:05 +01:00
zig_lib_path : ? [ ] const u8 = null ,
2020-05-15 20:10:53 +01:00
2022-07-11 14:45:31 +01:00
/// Zig executable path used to run the custom build runner.
2020-05-30 21:36:18 +01:00
/// May be used to find a lib path if none is provided.
zig_exe_path : ? [ ] const u8 = null ,
2020-05-15 20:10:53 +01:00
/// Whether to pay attention to style issues. This is opt-in since the style
/// guide explicitly states that the style info provided is a guideline only.
warn_style : bool = false ,
2020-05-25 18:04:23 +01:00
2021-01-12 11:10:51 +00:00
/// Path to the build_runner.zig file.
2020-05-25 18:04:23 +01:00
build_runner_path : ? [ ] const u8 = null ,
2020-06-16 12:27:00 +01:00
2021-03-27 19:37:51 +00:00
/// Path to a directory that will be used as cache when `zig run`ning the build runner
2021-01-12 11:10:51 +00:00
build_runner_cache_path : ? [ ] const u8 = null ,
2020-06-16 12:27:00 +01:00
/// Semantic token support
2020-11-15 22:07:35 +00:00
enable_semantic_tokens : bool = true ,
2020-07-07 21:26:12 +01:00
/// Whether to enable `*` and `?` operators in completion lists
operator_completions : bool = true ,
2021-03-06 19:55:59 +00:00
2021-03-26 09:20:20 +00:00
/// Whether the @ sign should be part of the completion of builtins
include_at_in_builtins : bool = false ,
2021-03-27 19:37:51 +00:00
/// The detail field of completions is truncated to be no longer than this (in bytes).
2022-07-11 14:45:31 +01:00
max_detail_length : usize = 1048576 ,
2021-03-27 19:37:51 +00:00
2021-03-06 19:55:59 +00:00
/// Skips references to std. This will improve lookup speeds.
/// Going to definition however will continue to work
2021-03-07 13:51:47 +00:00
skip_std_references : bool = false ,
2021-12-30 03:35:16 +00:00
2022-07-11 14:45:31 +01:00
/// Path to "builtin;" useful for debugging, automatically set if let null
2021-12-30 03:35:16 +00:00
builtin_path : ? [ ] const u8 = null ,