Add neovim job/terminal APIs

This commit is contained in:
Ben Jackson 2020-01-08 17:27:08 +00:00
commit 29c26996fb
5 changed files with 237 additions and 2 deletions

View file

@ -104,7 +104,7 @@ def SetUpHiddenBuffer( buf, name ):
def SetUpPromptBuffer( buf, name, prompt, callback, hidden=False ):
# This feature is _super_ new, so only enable when available
if not int( vim.eval( "exists( '*prompt_setprompt' )" ) ):
return SetUpScratchBuffer( buf, name )
return SetUpHiddenBuffer( buf, name )
buf.options[ 'buftype' ] = 'prompt'
buf.options[ 'swapfile' ] = False