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

@@ -103,6 +103,14 @@ struct ui_t {
double pum_height;
double pum_width;
// TUI fields.
char *term_name;
char *term_background;
int term_colors;
int stdin_fd;
bool stdin_tty;
bool stdout_tty;
// TODO(bfredl): integrate into struct!
UIData data[1];
};