API: nvim_create_buf: add scratch parameter

Creating a scratch buffer is a chore/ritual, and would be more
useful/common if formally exposed.
This commit is contained in:
Justin M. Keyes
2019-02-09 16:38:36 +01:00
parent 023e832d40
commit aee29e51a6
3 changed files with 71 additions and 14 deletions

View File

@@ -1256,6 +1256,7 @@ directory Displays directory contents. Can be used by a file explorer
< The buffer name is the name of the directory and is adjusted
when using the |:cd| command.
*scratch-buffer*
scratch Contains text that can be discarded at any time. It is kept
when closing the window, it must be deleted explicitly.
Settings: >