feat(api): more fields in nvim_list_uis

Problem:
nvim_list_uis does not report all ":help ui-option" fields.

Solution:
Store ":help ui-option" fields on the `UI` object and update ui_array.
This commit is contained in:
Justin M. Keyes
2023-02-23 18:29:36 +01:00
parent f64098a2df
commit 7f424e2b65
9 changed files with 72 additions and 26 deletions

View File

@@ -2549,20 +2549,26 @@ describe('API', function()
{
chan = 1,
ext_cmdline = false,
ext_hlstate = false,
ext_linegrid = screen._options.ext_linegrid or false,
ext_messages = false,
ext_multigrid = false,
ext_popupmenu = false,
ext_tabline = false,
ext_wildmenu = false,
ext_linegrid = screen._options.ext_linegrid or false,
ext_multigrid = false,
ext_hlstate = false,
ext_termcolors = false,
ext_messages = false,
ext_wildmenu = false,
height = 4,
rgb = true,
override = true,
rgb = true,
stdin_tty = false,
stdout_tty = false,
term_background = '',
term_colors = 0,
term_name = '',
width = 20,
}
}
eq(expected, nvim("list_uis"))
screen:detach()