chore(build): auto-generate vimdoc
parent
e9fdae57a7
commit
d7747ddd6c
|
|
@ -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 you’re using the excellent Legendary.nvim
|
Finaly, if you’re 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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue