From 3ef7c4d3fc04be38783981dc30a20a79f1fdf099 Mon Sep 17 00:00:00 2001 From: Prabir Shrestha Date: Sun, 20 Sep 2020 02:45:44 +0000 Subject: [PATCH] add winid() and bufnr() api --- autoload/vital/__vital__/Experimental/UI/Popup.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autoload/vital/__vital__/Experimental/UI/Popup.vim b/autoload/vital/__vital__/Experimental/UI/Popup.vim index d42d73c51..cebefe79d 100644 --- a/autoload/vital/__vital__/Experimental/UI/Popup.vim +++ b/autoload/vital/__vital__/Experimental/UI/Popup.vim @@ -92,6 +92,14 @@ function! s:contents(id, contents) abort endif endfunction +function! s:winid(id) abort + return s:_popups[a:id]['winid'] +endfunction + +function! s:bufnr(id) abort + return s:_popups[a:id]['bufnr'] +endfunction + function! s:_nvim_open_win(id, data) abort let opt = { \ 'relative': 'editor',