Skip to content

Commit

Permalink
Fix option field type
Browse files Browse the repository at this point in the history
  • Loading branch information
notomo committed Aug 10, 2023
1 parent 2fb5b73 commit 83e4408
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions doc/waitevent.nvim.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ WaiteventOpenContext *WaiteventOpenContext*

WaiteventEditorOption *WaiteventEditorOption*

- {open} (fun(ctx:WaiteventOpenContext,...:string)) function that be called to open files
- {done_events} (string[]) autocmd events that treated as done
- {on_done} (fun(ctx:WaiteventContext)) function that called on done editor. |WaiteventContext|
- {cancel_events} (string[]) autocmd events that treated as cancel
- {on_canceled} (fun(ctx:WaiteventContext)) function that called on canceled editor. |WaiteventContext|
- {open} (fun(ctx:WaiteventOpenContext,...:string)?) function that be called to open files
- {done_events} (string[]?) autocmd events that treated as done
- {on_done} (fun(ctx:WaiteventContext)?) function that called on done editor. |WaiteventContext|
- {cancel_events} (string[]?) autocmd events that treated as cancel
- {on_canceled} (fun(ctx:WaiteventContext)?) function that called on canceled editor. |WaiteventContext|

WaiteventContext *WaiteventContext*

Expand Down
10 changes: 5 additions & 5 deletions lua/waitevent/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ local M = {}
--- @field stdin string if stdin exists, it is not empty. |--|

--- @class WaiteventEditorOption
--- @field open fun(ctx:WaiteventOpenContext,...:string) function that be called to open files
--- @field done_events string[] autocmd events that treated as done
--- @field on_done fun(ctx:WaiteventContext) function that called on done editor. |WaiteventContext|
--- @field cancel_events string[] autocmd events that treated as cancel
--- @field on_canceled fun(ctx:WaiteventContext) function that called on canceled editor. |WaiteventContext|
--- @field open fun(ctx:WaiteventOpenContext,...:string)? function that be called to open files
--- @field done_events string[]? autocmd events that treated as done
--- @field on_done fun(ctx:WaiteventContext)? function that called on done editor. |WaiteventContext|
--- @field cancel_events string[]? autocmd events that treated as cancel
--- @field on_canceled fun(ctx:WaiteventContext)? function that called on canceled editor. |WaiteventContext|

--- @class WaiteventContext
--- @field window_id_before_open integer: |window-ID| before |WaiteventEditorOption|.open
Expand Down

0 comments on commit 83e4408

Please sign in to comment.