mirror of
https://github.com/neovim/neovim.git
synced 2026-05-24 05:40:08 +00:00
docs: misc, custom text-object #39877
text-object-define is a pattern I found in tpope's plugins (e.g. https://github.com/tpope/vim-jdaddy) which shows an elegant way to define a text-object. (Any mistakes in the example are my fault.)
This commit is contained in:
3
runtime/lua/vim/_meta/api.gen.lua
generated
3
runtime/lua/vim/_meta/api.gen.lua
generated
@@ -1231,7 +1231,8 @@ function vim.api.nvim_exec(src, output) end
|
||||
--- - output: (string|nil) Output if `opts.output` is true.
|
||||
function vim.api.nvim_exec2(src, opts) end
|
||||
|
||||
--- Executes handlers for {event} that match the corresponding {opts} query. `autocmd-execute`
|
||||
--- Executes {event} handlers matching the {opts} query, in the context of {buf} (if given). `autocmd-execute`
|
||||
---
|
||||
--- @see `:help :doautocmd`
|
||||
--- @param event vim.api.keyset.events|vim.api.keyset.events[] Event(s) to execute.
|
||||
--- @param opts vim.api.keyset.exec_autocmds Optional filters:
|
||||
|
||||
Reference in New Issue
Block a user