From ff85e54939b0aca34a779a2b6381d09db1858b29 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 18 Sep 2024 04:14:06 -0700 Subject: feat(tui): builtin UI (TUI) sets client info #30397 Problem: The default builtin UI client does not declare its client info. This reduces discoverability and makes it difficult for plugins to identify the UI. Solution: - Call nvim_set_client_info after attaching, as recommended by `:help dev-ui`. - Also set the "pid" field. - Also change `ui_active()` to return a count. Not directly relevant to this commit, but will be useful later. --- test/client/session.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/client/session.lua') diff --git a/test/client/session.lua b/test/client/session.lua index 38d81eff83..bfce4eedc7 100644 --- a/test/client/session.lua +++ b/test/client/session.lua @@ -96,8 +96,7 @@ end --- @param method string --- @param ... any ---- @return boolean ---- @return table +--- @return boolean, table function Session:request(method, ...) local args = { ... } local err, result -- cgit