-
-
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.
- Loading branch information
Showing
4 changed files
with
42 additions
and
17 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
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,8 +1,14 @@ | ||
--- In this module some presets for the format_entry function are available. | ||
--- In this module some presets for the format_entry function are available. They can be accessed like this | ||
--- ```lua | ||
--- format_entry = function(entry, data) | ||
--- return require("care.presets").<preset_name>(entry, data) | ||
--- end | ||
--- ``` | ||
---@class care.presets | ||
--- The default preset. Just includes the label and a simple icon. | ||
--- ![image](https://github.com/user-attachments/assets/d3d7d338-db32-471f-ae20-89ea7703cb55) | ||
---@field Default fun(entry: care.entry, data: care.format_data): { [1]: string, [2]: string }[][] | ||
--- The atom preset is an atom-like configuration. It displays the kind icon with a blended colored background and | ||
--- the labelatom preset is an atom-like configuration. It displays the kind icon with a blended colored background | ||
--- and the label. | ||
--- the label. | ||
--- ![image](https://github.com/user-attachments/assets/f8715fa7-1a0e-4be9-85ae-14b85cc2b7fd) | ||
---@field Atom fun(entry: care.entry, data: care.format_data): { [1]: string, [2]: string }[][] |
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