diff options
| author | Michiel van den Heuvel <michielvdnheuvel@gmail.com> | 2023-06-24 19:46:03 +0200 |
|---|---|---|
| committer | Michiel van den Heuvel <michielvdnheuvel@gmail.com> | 2023-06-29 15:13:31 +0200 |
| commit | 336cf3083232e824c8990834b56c6a1068b5a631 (patch) | |
| tree | 1fb4ae7b34bbc1c31306488f87103b72d40bb8e8 /README.md | |
| parent | e83950a7149f364b653395cdd4d9446875a7f469 (diff) | |
| download | vis-lspc-336cf3083232e824c8990834b56c6a1068b5a631.tar.gz vis-lspc-336cf3083232e824c8990834b56c6a1068b5a631.zip | |
Make formatting options sort of configurable
This should be wired up to code that's in a pull request in the vis
repository for the default options. This PR does not yet expose
`expandtab`.
Referenced PR: https://github.com/martanne/vis/pull/717
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -153,6 +153,7 @@ Additional fields are: * `settings` - a table of arbitrary possibly nested data. It is sent in a `workspace/didChangeConfiguration` to the language server after initialization. It is also used to lookup configuration for the `workspace/configuratio` method call. * `init_options` - table of arbitrary possibly nested data. It is send to the server as `initializationOptions` in the parameters of the `initialize` method call. +* `formatting_options` - table of configuration data as found in [the LSP specification](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_formatting). `tabSize` and `insertSpaces` are required. **Example:** The language server configuration entry in the `ls_map` for lua-language-server @@ -163,6 +164,7 @@ ls_map.lua = { settings = { Lua = {diagnostics = {globals = {'vis'}}, telemetry = {enable = false}}, }, + formatting_options = {tabSize = 2, insertSpaces = true}, }, ``` |
