chore(build): auto-generate vimdoc

main
github-actions[bot] 2023-02-23 11:14:44 +00:00
parent e9fdae57a7
commit d7747ddd6c
1 changed files with 8 additions and 1 deletions

View File

@ -349,9 +349,11 @@ autocommand can be created to hook into the `PersistedSavePre` event:
}) })
< <
Session data is also made available to the callback: Session data is also made available to the callbacks:
>lua >lua
local group = vim.api.nvim_create_augroup("PersistedHooks", {})
vim.api.nvim_create_autocmd({ "User" }, { vim.api.nvim_create_autocmd({ "User" }, {
pattern = "PersistedTelescopeLoadPre", pattern = "PersistedTelescopeLoadPre",
group = group, group = group,
@ -361,6 +363,11 @@ Session data is also made available to the callback:
}) })
< <
The session data available differs depending on the events that are hooked
into. For non-telescope events, only the session `name` is available (via
`session.data.name`). However for telescope events, the `branch`, `name`,
`file_path` and `dir_path` are available.
Finaly, if youre using the excellent Legendary.nvim Finaly, if youre using the excellent Legendary.nvim
<https://github.com/mrjones2014/legendary.nvim> plugin, consider the following <https://github.com/mrjones2014/legendary.nvim> plugin, consider the following
snippet format: snippet format: