2022-12-11 11:10:48 +00:00
//! DO NOT EDIT
2022-07-15 17:06:18 +01:00
//! Configuration options for zls.
2022-12-11 11:10:48 +00:00
//! If you want to add a config option edit
//! src/config_gen/config.zig and run `zig build gen`
//! GENERATED BY src/config_gen/config_gen.zig
2022-07-15 17:06:18 +01:00
2022-12-11 11:10:48 +00:00
/// Enables snippet completions when the client also supports them
2020-05-19 20:09:00 +01:00
enable_snippets : bool = false ,
2020-05-14 00:10:41 +01:00
2022-09-01 01:48:42 +01:00
/// Whether to enable ast-check diagnostics
2022-09-03 14:12:34 +01:00
enable_ast_check_diagnostics : bool = true ,
2022-07-08 09:13:46 +01:00
2022-12-11 11:10:48 +00:00
/// Whether to automatically fix errors on save. Currently supports adding and removing discards.
2022-09-24 20:30:36 +01:00
enable_autofix : bool = false ,
2022-12-11 11:10:48 +00:00
/// Whether to enable import/embedFile argument completions
2022-07-09 10:22:02 +01:00
enable_import_embedfile_argument_completions : bool = false ,
2022-12-11 11:10:48 +00:00
/// Enables semantic token support when the client also supports it
2020-11-15 22:07:35 +00:00
enable_semantic_tokens : bool = true ,
2020-07-07 21:26:12 +01:00
2022-12-11 11:10:48 +00:00
/// Enables inlay hint support when the client also supports it
2022-07-24 12:38:13 +01:00
enable_inlay_hints : bool = false ,
2022-12-11 11:10:48 +00:00
/// Enable inlay hints for builtin functions
2022-07-24 12:38:13 +01:00
inlay_hints_show_builtin : bool = true ,
2022-12-11 11:10:48 +00:00
/// Don't show inlay hints for single argument calls
2022-07-24 12:38:13 +01:00
inlay_hints_exclude_single_argument : bool = true ,
2022-12-11 11:10:48 +00:00
/// Hides inlay hints when parameter name matches the identifier (e.g. foo: foo)
2022-09-29 19:36:29 +01:00
inlay_hints_hide_redundant_param_names : bool = false ,
2022-12-11 11:10:48 +00:00
/// Hides inlay hints when parameter name matches the last token of a parameter node (e.g. foo: bar.foo, foo: &foo)
2022-09-29 19:36:29 +01:00
inlay_hints_hide_redundant_param_names_last_token : bool = false ,
2022-12-11 11:10:48 +00:00
/// Enables `*` and `?` operators in completion lists
2020-07-07 21:26:12 +01:00
operator_completions : bool = true ,
2021-03-06 19:55:59 +00:00
2022-12-11 11:10:48 +00:00
/// Enables warnings for style guideline mismatches
warn_style : bool = false ,
2022-07-15 17:06:18 +01:00
2022-12-11 11:10:48 +00:00
/// Whether to highlight global var declarations
2022-10-10 06:13:15 +01:00
highlight_global_var_declarations : bool = false ,
2022-11-17 00:28:01 +00:00
/// Whether to use the comptime interpreter
use_comptime_interpreter : bool = false ,
2022-10-10 06:13:15 +01:00
2022-12-11 11:10:48 +00:00
/// Whether the @ sign should be part of the completion of builtins
include_at_in_builtins : bool = false ,
2022-09-04 20:44:07 +01:00
2022-12-11 11:10:48 +00:00
/// When true, skips searching for references in std. Improves lookup speed for functions in user's code. Renaming and go-to-definition will continue to work as is
skip_std_references : bool = false ,
2022-09-29 00:30:26 +01:00
2022-12-11 11:10:48 +00:00
/// The detail field of completions is truncated to be no longer than this (in bytes)
max_detail_length : usize = 1048576 ,
2022-09-29 00:30:26 +01:00
2022-12-11 11:10:48 +00:00
/// Path to 'builtin;' useful for debugging, automatically set if let null
builtin_path : ? [ ] const u8 = null ,
2022-09-29 00:30:26 +01:00
2022-12-11 11:10:48 +00:00
/// Zig library path, e.g. `/path/to/zig/lib/zig`, used to analyze std library imports
zig_lib_path : ? [ ] const u8 = null ,
2022-09-29 00:30:26 +01:00
2022-12-11 11:10:48 +00:00
/// Zig executable path, e.g. `/path/to/zig/zig`, used to run the custom build runner. If `null`, zig is looked up in `PATH`. Will be used to infer the zig standard library path if none is provided
zig_exe_path : ? [ ] const u8 = null ,
2022-09-29 00:30:26 +01:00
2022-12-11 11:10:48 +00:00
/// Path to the `build_runner.zig` file provided by zls. null is equivalent to `${executable_directory}/build_runner.zig`
build_runner_path : ? [ ] const u8 = null ,
2022-10-01 01:47:40 +01:00
2022-12-11 11:10:48 +00:00
/// Path to a directroy that will be used as zig's cache. null is equivalent to `${KnownFloders.Cache}/zls`
global_cache_path : ? [ ] const u8 = null ,
2022-10-01 01:47:40 +01:00
2022-12-11 11:10:48 +00:00
// DO NOT EDIT