docs(restart): use 'sessionoptions' to adjust :restart behavior #40583

(cherry picked from commit 656b4d9c34)
This commit is contained in:
Nathan Zeng
2026-07-05 02:52:49 -07:00
committed by Olivia Kinnear
parent 97290e8658
commit de42a039de

View File

@@ -99,8 +99,9 @@ Restart Nvim
• Only works if the UI and server are on the same system.
• Windows limitation: when +cmd is executed, |v:servername|
refers to a temporary address.
• If no UI handles the "restart" event, this command will lead
to a dangling server process.
• If no UI handles the "restart" event, this leaves a dangling
process.
• To adjust what `:restart` restores, set 'sessionoptions'.
------------------------------------------------------------------------------
Connect UI to a different server