mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
docs(lsp): update cmd_env description (#22438)
This commit is contained in:
@@ -851,11 +851,10 @@ start_client({config}) *vim.lsp.start_client()*
|
|||||||
• cmd_cwd: (string, default=|getcwd()|) Directory to launch
|
• cmd_cwd: (string, default=|getcwd()|) Directory to launch
|
||||||
the `cmd` process. Not related to `root_dir`.
|
the `cmd` process. Not related to `root_dir`.
|
||||||
• cmd_env: (table) Environment flags to pass to the LSP on
|
• cmd_env: (table) Environment flags to pass to the LSP on
|
||||||
spawn. Can be specified using keys like a map or as a list
|
spawn. Must be specified using a map-like table.
|
||||||
with `k=v` pairs or both. Non-string values are coerced to string.
|
Non-string values are coerced to string. Example: >
|
||||||
Example: >
|
|
||||||
|
|
||||||
{ "PRODUCTION=true"; "TEST=123"; PORT = 8080; HOST = "0.0.0.0"; }
|
{ PORT = 8080; HOST = "0.0.0.0"; }
|
||||||
<
|
<
|
||||||
• detached: (boolean, default true) Daemonize the server
|
• detached: (boolean, default true) Daemonize the server
|
||||||
process so that it runs in a separate process group from
|
process so that it runs in a separate process group from
|
||||||
|
@@ -908,11 +908,11 @@ end
|
|||||||
--- the `cmd` process. Not related to `root_dir`.
|
--- the `cmd` process. Not related to `root_dir`.
|
||||||
---
|
---
|
||||||
--- - cmd_env: (table) Environment flags to pass to the LSP on
|
--- - cmd_env: (table) Environment flags to pass to the LSP on
|
||||||
--- spawn. Can be specified using keys like a map or as a list with `k=v`
|
--- spawn. Must be specified using a map-like table.
|
||||||
--- pairs or both. Non-string values are coerced to string.
|
--- Non-string values are coerced to string.
|
||||||
--- Example:
|
--- Example:
|
||||||
--- <pre>
|
--- <pre>
|
||||||
--- { "PRODUCTION=true"; "TEST=123"; PORT = 8080; HOST = "0.0.0.0"; }
|
--- { PORT = 8080; HOST = "0.0.0.0"; }
|
||||||
--- </pre>
|
--- </pre>
|
||||||
---
|
---
|
||||||
--- - detached: (boolean, default true) Daemonize the server process so that it runs in a
|
--- - detached: (boolean, default true) Daemonize the server process so that it runs in a
|
||||||
|
Reference in New Issue
Block a user