aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorgeekodour <hrishikeshbman@gmail.com>2018-02-16 14:10:40 +0530
committerJustin M. Keyes <justinkz@gmail.com>2018-03-03 15:06:24 +0100
commit9f994bb69925ed943b17d03f2cad7d5e2c21e992 (patch)
treec5ee2bc3413b1bcd60db99700fc40cf88587f2ed /src/nvim/api/vim.c
parent37b755ab47a20418fca45c81037a973b4cc027e6 (diff)
downloadrneovim-9f994bb69925ed943b17d03f2cad7d5e2c21e992.tar.gz
rneovim-9f994bb69925ed943b17d03f2cad7d5e2c21e992.tar.bz2
rneovim-9f994bb69925ed943b17d03f2cad7d5e2c21e992.zip
api: nvim_list_uis #8004
ref #7438 closes #4842
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r--src/nvim/api/vim.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index 0e7cc428d4..dad67c5e4b 100644
--- a/src/nvim/api/vim.c
+++ b/src/nvim/api/vim.c
@@ -35,6 +35,7 @@
#include "nvim/os/input.h"
#include "nvim/viml/parser/expressions.h"
#include "nvim/viml/parser/parser.h"
+#include "nvim/ui.h"
#define LINE_BUFFER_SIZE 4096
@@ -1468,3 +1469,12 @@ Float nvim__id_float(Float flt)
{
return flt;
}
+
+/// Gets a list of dictionaries representing attached UIs.
+///
+/// @return Array of UI dictionaries
+Array nvim_list_uis(void)
+ FUNC_API_SINCE(4)
+{
+ return ui_array();
+}