Add onBufferOpen plugin callback

Closes #948
This commit is contained in:
Zachary Yedidia
2018-01-08 17:08:11 -05:00
parent 9a6054fc43
commit 3f01101da4
5 changed files with 20 additions and 9 deletions

View File

@@ -45,6 +45,8 @@ view is passed in. This is useful for setting local options based on the
filetype, for example turning off `tabstospaces` only for Go files when they are
opened.
Similar to `onViewOpen(view)` there is also `onBufferOpen(buf)`.
---
There are a number of functions and variables that are available to you in order