diff options
| author | Damian Tarnawski <gthetarnav@gmail.com> | 2024-01-24 23:45:21 +0100 |
|---|---|---|
| committer | Damian Tarnawski <gthetarnav@gmail.com> | 2024-01-24 23:45:21 +0100 |
| commit | 0dfd887bec02efb4eda374495c79791fb5d76215 (patch) | |
| tree | f64d60909fca2b4331d00bae2e88ed4dedcda3a6 | |
| parent | e536b9393c64c1fe61d87b46dcdfa45bc1c1efcf (diff) | |
Add enable_format option to ols.schema.json and readme
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | misc/ols.schema.json | 5 |
2 files changed, 9 insertions, 2 deletions
@@ -32,7 +32,7 @@ cd ols In order for the language server to index your files, it must know about your collections. -To do that you can either configure ols via an ``ols.json`` file (it should be located at the root of your workspace). +To do that you can either configure ols via an `ols.json` file (it should be located at the root of your workspace). Or you can provide the configuration via your editor of choice. @@ -43,7 +43,7 @@ Example of `ols.json`: { "$schema": "https://raw.githubusercontent.com/DanielGavin/ols/master/misc/ols.schema.json", "collections": [ - { "name": "custom_collection", "path": "c:/path/to/collection" }, + { "name": "custom_collection", "path": "c:/path/to/collection" } ], "enable_semantic_tokens": false, "enable_document_symbols": true, @@ -56,6 +56,8 @@ You can also set `ODIN_ROOT` environment variable to the path where ols should l Options: +`enable_format`: Turns on formatting with `odinfmt`. _(Enabled by default)_ + `enable_hover`: Enables hover feature `enable_snippets`: Turns on builtin snippets diff --git a/misc/ols.schema.json b/misc/ols.schema.json index bc01704..a374681 100644 --- a/misc/ols.schema.json +++ b/misc/ols.schema.json @@ -21,6 +21,11 @@ "type": "boolean", "description": "Turns on outline of all your global declarations in your document." }, + "enable_format": { + "type": "boolean", + "description": "Turns on formatting with odinfmt.", + "default": true + }, "enable_hover": { "type": "boolean", "description": "Enables hover feature" |