diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2022-05-08 13:00:30 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-08 13:00:30 -0600 |
commit | 6cfb1d4c280a90bcce4e793f56d791b68c66c264 (patch) | |
tree | 6f7c6a611e8ee6cdedc5bdbad6aae202fb5e96d1 /runtime/doc | |
parent | 0d3f17a6c317b26cdc319b48e25e1574f3a0e9fd (diff) | |
download | rneovim-6cfb1d4c280a90bcce4e793f56d791b68c66c264.tar.gz rneovim-6cfb1d4c280a90bcce4e793f56d791b68c66c264.tar.bz2 rneovim-6cfb1d4c280a90bcce4e793f56d791b68c66c264.zip |
fix(lsp): detach spawned LSP server processes (#18477)
LSP servers should be daemonized (detached) so that they run in a
separate process group from Neovim's. Among other things, this ensures
the process does not inherit Neovim's TTY (#18475).
Make this configurable so that clients can explicitly opt-out of
detaching from Nvim.
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/lsp.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/doc/lsp.txt b/runtime/doc/lsp.txt index 299efe5bf6..c1726bcb23 100644 --- a/runtime/doc/lsp.txt +++ b/runtime/doc/lsp.txt @@ -787,6 +787,13 @@ start_client({config}) *vim.lsp.start_client()* { "PRODUCTION=true"; "TEST=123"; PORT = 8080; HOST = "0.0.0.0"; } < + {detached} (boolean, default true) Daemonize the + server process so that it runs in a + separate process group from Nvim. + Nvim will shutdown the process on + exit, but if Nvim fails to exit + cleanly this could leave behind + orphaned server processes. {workspace_folders} (table) List of workspace folders passed to the language server. For backwards compatibility rootUri and |