aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/api.txt
diff options
context:
space:
mode:
authorHirokazu Hata <h.hata.ai.t@gmail.com>2020-05-19 14:26:17 +0900
committerHirokazu Hata <h.hata.ai.t@gmail.com>2020-06-15 12:30:13 +0900
commit52cd8bf507d44bd5bad3f9c915ef6def7b6623c4 (patch)
tree27c1ddef2c69777d499a2c3484c680a1077aa73e /runtime/doc/api.txt
parent74fed7d50fc80fd9889a09812329e0c281bfde52 (diff)
downloadrneovim-52cd8bf507d44bd5bad3f9c915ef6def7b6623c4.tar.gz
rneovim-52cd8bf507d44bd5bad3f9c915ef6def7b6623c4.tar.bz2
rneovim-52cd8bf507d44bd5bad3f9c915ef6def7b6623c4.zip
doc: fix vim.api.nvim_buf_attach callback arguments
Diffstat (limited to 'runtime/doc/api.txt')
-rw-r--r--runtime/doc/api.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index a2e0c56f85..fdabb0da50 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -1612,6 +1612,7 @@ nvim_buf_attach({buffer}, {send_buffer}, {opts}) *nvim_buf_attach()*
{opts} Optional parameters.
• on_lines: Lua callback invoked on change.
Return`true`to detach. Args:
+ • the string "lines"
• buffer handle
• b:changedtick
• first line that changed (zero-indexed)
@@ -1626,11 +1627,13 @@ nvim_buf_attach({buffer}, {send_buffer}, {opts}) *nvim_buf_attach()*
• on_changedtick: Lua callback invoked on
changedtick increment without text
change. Args:
+ • the string "changedtick"
• buffer handle
• b:changedtick
• on_detach: Lua callback invoked on
detach. Args:
+ • the string "detach"
• buffer handle
• utf_sizes: include UTF-32 and UTF-16 size