mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-25 18:07:07 +09:00
plugin: Add new onBufferOptionChanged callback
This can become handy in the moment a plugin needs to react on e.g. changed file type.
This commit is contained in:
@@ -62,6 +62,10 @@ that micro defines:
|
||||
* `onBufferOpen(buf)`: runs when a buffer is opened. The input contains
|
||||
the buffer object.
|
||||
|
||||
* `onBufferOptionChanged(buf, option, old, new)`: runs when an option of the
|
||||
buffer has changed. The input contains the buffer object, the option name,
|
||||
the old and the new value.
|
||||
|
||||
* `onBufPaneOpen(bufpane)`: runs when a bufpane is opened. The input
|
||||
contains the bufpane object.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user