From 369464406766610cfddf6735312c1a468d21bb84 Mon Sep 17 00:00:00 2001 From: Techatrix <19954306+Techatrix@users.noreply.github.com> Date: Mon, 2 Jan 2023 02:01:24 +0100 Subject: [PATCH] enable all capabilities by default --- README.md | 8 ++++---- schema.json | 8 ++++---- src/Config.zig | 8 ++++---- src/config_gen/config.json | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index b0b5f01a0..e1f9e4eca 100644 --- a/README.md +++ b/README.md @@ -69,12 +69,12 @@ The following options are currently available. | Option | Type | Default value | What it Does | | --- | --- | --- | --- | -| `enable_snippets` | `bool` | `false` | Enables snippet completions when the client also supports them | +| `enable_snippets` | `bool` | `true` | Enables snippet completions when the client also supports them | | `enable_ast_check_diagnostics` | `bool` | `true` | Whether to enable ast-check diagnostics | -| `enable_autofix` | `bool` | `false` | Whether to automatically fix errors on save. Currently supports adding and removing discards. | -| `enable_import_embedfile_argument_completions` | `bool` | `false` | Whether to enable import/embedFile argument completions | +| `enable_autofix` | `bool` | `true` | Whether to automatically fix errors on save. Currently supports adding and removing discards. | +| `enable_import_embedfile_argument_completions` | `bool` | `true` | Whether to enable import/embedFile argument completions | | `enable_semantic_tokens` | `bool` | `true` | Enables semantic token support when the client also supports it | -| `enable_inlay_hints` | `bool` | `false` | Enables inlay hint support when the client also supports it | +| `enable_inlay_hints` | `bool` | `true` | Enables inlay hint support when the client also supports it | | `inlay_hints_show_builtin` | `bool` | `true` | Enable inlay hints for builtin functions | | `inlay_hints_exclude_single_argument` | `bool` | `true` | Don't show inlay hints for single argument calls | | `inlay_hints_hide_redundant_param_names` | `bool` | `false` | Hides inlay hints when parameter name matches the identifier (e.g. foo: foo) | diff --git a/schema.json b/schema.json index 665c5de60..567549154 100644 --- a/schema.json +++ b/schema.json @@ -7,7 +7,7 @@ "enable_snippets": { "description": "Enables snippet completions when the client also supports them", "type": "boolean", - "default": "false" + "default": "true" }, "enable_ast_check_diagnostics": { "description": "Whether to enable ast-check diagnostics", @@ -17,12 +17,12 @@ "enable_autofix": { "description": "Whether to automatically fix errors on save. Currently supports adding and removing discards.", "type": "boolean", - "default": "false" + "default": "true" }, "enable_import_embedfile_argument_completions": { "description": "Whether to enable import/embedFile argument completions", "type": "boolean", - "default": "false" + "default": "true" }, "enable_semantic_tokens": { "description": "Enables semantic token support when the client also supports it", @@ -32,7 +32,7 @@ "enable_inlay_hints": { "description": "Enables inlay hint support when the client also supports it", "type": "boolean", - "default": "false" + "default": "true" }, "inlay_hints_show_builtin": { "description": "Enable inlay hints for builtin functions", diff --git a/src/Config.zig b/src/Config.zig index 9ce599baf..a01861c90 100644 --- a/src/Config.zig +++ b/src/Config.zig @@ -5,22 +5,22 @@ //! GENERATED BY src/config_gen/config_gen.zig /// Enables snippet completions when the client also supports them -enable_snippets: bool = false, +enable_snippets: bool = true, /// Whether to enable ast-check diagnostics enable_ast_check_diagnostics: bool = true, /// Whether to automatically fix errors on save. Currently supports adding and removing discards. -enable_autofix: bool = false, +enable_autofix: bool = true, /// Whether to enable import/embedFile argument completions -enable_import_embedfile_argument_completions: bool = false, +enable_import_embedfile_argument_completions: bool = true, /// Enables semantic token support when the client also supports it enable_semantic_tokens: bool = true, /// Enables inlay hint support when the client also supports it -enable_inlay_hints: bool = false, +enable_inlay_hints: bool = true, /// Enable inlay hints for builtin functions inlay_hints_show_builtin: bool = true, diff --git a/src/config_gen/config.json b/src/config_gen/config.json index 1a8a78c0c..ed21934ef 100644 --- a/src/config_gen/config.json +++ b/src/config_gen/config.json @@ -4,7 +4,7 @@ "name": "enable_snippets", "description": "Enables snippet completions when the client also supports them", "type": "bool", - "default": "false", + "default": "true", "setup_question": "Do you want to enable snippets?" }, { @@ -18,14 +18,14 @@ "name": "enable_autofix", "description": "Whether to automatically fix errors on save. Currently supports adding and removing discards.", "type": "bool", - "default": "false", + "default": "true", "setup_question": "Do you want to zls to automatically try to fix errors on save? (supports adding & removing discards)" }, { "name": "enable_import_embedfile_argument_completions", "description": "Whether to enable import/embedFile argument completions", "type": "bool", - "default": "false", + "default": "true", "setup_question": "Do you want to enable @import/@embedFile argument path completion?" }, { @@ -39,7 +39,7 @@ "name": "enable_inlay_hints", "description": "Enables inlay hint support when the client also supports it", "type": "bool", - "default": "false", + "default": "true", "setup_question": "Do you want to enable inlay hints?" }, {