Skip to content

Commit a5149d5

Browse files
willothygithub-actions[bot]
authored andcommitted
chore(docs): autogenerate vimdoc
1 parent 263ffb2 commit a5149d5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/flatten.nvim.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ WINDOW ~
205205
- `guest_cwd``string`
206206
- The current working directory of the guest instance.
207207
- `data``any`
208-
- The data passed to the host from the `guest_data` callback.
208+
- The data passed to the host from the `guest_data` hook.
209209
- `Flatten.BufInfo`
210210
- `fname``string`
211211
- `bufnr``integer`
@@ -227,7 +227,7 @@ Defaults are in `flatten.hooks`.
227227
- Called before opening files.
228228
- `Flatten.PreOpenContext`
229229
- `data``any`
230-
- The data passed to the host from the `guest_data` callback.
230+
- The data passed to the host from the `guest_data` hook.
231231
- `hooks.post_open``fun(opts: Flatten.PostOpenContext)`
232232
- Called after opening files.
233233
- `Flatten.PostOpenContext`
@@ -242,14 +242,14 @@ Defaults are in `flatten.hooks`.
242242
- `is_diff``boolean`
243243
- Whether the files were opened in diff mode.
244244
- `data``any`
245-
- The data passed to the host from the `guest_data` callback.
245+
- The data passed to the host from the `guest_data` hook.
246246
- `hooks.block_end``fun(opts: Flatten.BlockEndContext)`
247247
- Called when the host closes the file.
248248
- `Flatten.BlockEndContext`
249249
- `filetype``string`
250250
- The filetype of the file that was opened.
251251
- `data``any`
252-
- The data passed to the host from the `guest_data` callback.
252+
- The data passed to the host from the `guest_data` hook.
253253
- `hooks.no_files``fun(opts: Flatten.NoFilesArgs): Flatten.NoFilesBehavior`
254254
- Called when no files are passed to a guest instance, to determine what to do.
255255
- `Flatten.NoFilesArgs`
@@ -279,8 +279,8 @@ exists).
279279

280280
Note that when opening a file in blocking mode, such as a git commit, the
281281
terminal will be inaccessible. You can get the filetype from the bufnr or
282-
filetype arguments of the `post_open` callback to only close the terminal for
283-
blocking files, and the `block_end` callback to reopen it afterwards.
282+
filetype arguments of the `post_open` hook to only close the terminal for
283+
blocking files, and the `block_end` hook to reopen it afterwards.
284284

285285
Here’s my setup for toggleterm, including an autocmd to automatically close a
286286
git commit buffer on write:

0 commit comments

Comments
 (0)