Skip to content

Commit

Permalink
add winid() and bufnr() api
Browse files Browse the repository at this point in the history
  • Loading branch information
prabirshrestha committed Oct 17, 2020
1 parent 62e5a34 commit 3ef7c4d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions autoload/vital/__vital__/Experimental/UI/Popup.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 3ef7c4d

Please sign in to comment.