-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): add documentation for blocking core
- Loading branch information
Showing
2 changed files
with
32 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
--- The core of neocomplete where the main api functions are defined | ||
--- The core module of neocomplete | ||
---@class neocomplete.core | ||
--- Create a new instance of the core | ||
---@field new fun(): neocomplete.core | ||
--- Context instance of the core | ||
---@field context neocomplete.context | ||
--- Menu instance of the core | ||
---@field menu neocomplete.menu | ||
--- Complete | ||
---@field complete fun(self: neocomplete.core, reason: neocomplete.completionReason?): nil | ||
--- The function that gets invoked when the text changes | ||
---@field on_change fun(neocomplete.core): nil | ||
--- Block neocomplete temporarily | ||
--- Call return value to unblock | ||
---@field block fun(neocomplete.core): fun(): nil | ||
--- Setup core (for now autocommands) | ||
---@field setup fun(self: neocomplete.core): nil | ||
--- Context instance of the core | ||
---@field context neocomplete.context | ||
--- Menu instance of the core | ||
---@field menu neocomplete.menu | ||
--- Block autocompletion | ||
---@field blocked boolean |