aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/provider/python.lua
diff options
context:
space:
mode:
authorSzymon Wilczek <kazikwilczek7@gmail.com>2026-05-06 14:55:34 +0200
committerGitHub <noreply@github.com>2026-05-06 08:55:34 -0400
commitc3f803c3b6d48eb885003dc12935785629150624 (patch)
tree2a48dce92ed78c26377cc81f0f5c772be9f530dd /runtime/lua/vim/provider/python.lua
parent0ea720f281985323c5f9b9cec06db8ef52fcea26 (diff)
downloadrneovim-c3f803c3b6d48eb885003dc12935785629150624.tar.gz
rneovim-c3f803c3b6d48eb885003dc12935785629150624.tar.bz2
rneovim-c3f803c3b6d48eb885003dc12935785629150624.zip
feat(server): serverlist({info=true}) gets detailed info #39392
Problem: UI tools and orchestration engines need more context than just raw socket addresses from serverlist(). Without knowing if a server belongs to the current instance or knowing its PID, UIs cannot display meaningful options to users. Solution: - Added the `info=v:true` option to `serverlist()`. - When `info` is requested, it implies `peer=true` and returns a list of dictionaries (defined as `vim.ServerInfo`) with `addr`, `pid` and `own`. - Uses an RPC request to `getpid()` across the socket to fetch the peer's actual process ID. Signed-off-by: Szymon Wilczek <swilczek.lx@gmail.com>
Diffstat (limited to 'runtime/lua/vim/provider/python.lua')
0 files changed, 0 insertions, 0 deletions