Skip to content

Commit

Permalink
enable all capabilities by default (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix authored Jan 2, 2023
1 parent 3449269 commit b95d509
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ The following options are currently available.
<!-- DO NOT EDIT | THIS SECTION IS AUTO-GENERATED | DO NOT EDIT -->
| 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) |
Expand Down
8 changes: 4 additions & 4 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions src/Config.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions src/config_gen/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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?"
},
{
Expand All @@ -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?"
},
{
Expand All @@ -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?"
},
{
Expand Down

0 comments on commit b95d509

Please sign in to comment.