diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 92c774de2c..3a35d5dbec 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -2222,7 +2222,7 @@ whether a buffer is loaded. nvim_buf_attach({buffer}, {send_buffer}, {opts}) *nvim_buf_attach()* - Activates buffer-update events on a channel, or as Lua callbacks. + Activates |api-buffer-updates| events on a channel, or as Lua callbacks. Example (Lua): capture buffer updates in a global `events` variable (use "vim.print(events)" to see its contents): >lua @@ -2875,7 +2875,7 @@ nvim_buf_set_extmark({buffer}, {ns_id}, {line}, {col}, {opts}) • hl_eol : when true, for a multiline highlight covering the EOL of a line, continue the highlight for the rest of the screen line (just like for diff and cursorline highlight). - • virt_text : virtual text to link to this mark. A list of + • virt_text : *virtual-text* to link to this mark. A list of `[text, highlight]` tuples, each representing a text chunk with specified highlight. `highlight` element can either be a single highlight group, or an array of multiple diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index fe57d9ab1c..c116c67813 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -78,6 +78,9 @@ exception is that "" is expanded when the autocmd is defined. Example: :au BufNewFile,BufRead *.html so :h/html.vim Here Vim expands to the name of the file containing this line. +Use