Skip to content

Commit

Permalink
chore(build): auto-generate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 13, 2024
1 parent e4f4c28 commit a2eceea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
24 changes: 1 addition & 23 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,7 @@ config.defaults = {
border = "rounded",
position = "auto",
format_entry = function(entry, data)
local completion_item = entry.completion_item
local type_icons = config.options.ui.type_icons or {}
local color = require("care.presets.utils").GetColor(entry)
-- TODO: remove since now can only be number, or also allow custom string kinds?
local entry_kind = type(completion_item.kind) == "string" and completion_item.kind
or require("care.utils.lsp").get_kind_name(completion_item.kind)
return {
{
{ completion_item.label .. " ", data.deprecated and "Comment" or "@care.entry" },
color
and {
"",
require("care.presets.utils").GetHighlightForHex(color) or "@care.entry",
}
or nil,
},
{
{
" " .. (type_icons[entry_kind] or type_icons.Text) .. " ",
("@care.type.%s"):format(entry_kind),
},
},
}
return require("care.presets").Default(entry, data)
end,
scrollbar = { enabled = true, character = "", offset = 0 },
alignments = {},
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration_recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ local labels = {"1", "2", "3", "4", "5", "6", "7", "8", "9"}
-- Add this to formatting

{ {
" " .. require("care.presets.utils").LabelEntries(labels)(entry, data) .. " ",
" " .. require("care.presets.utils").label_entries(labels)(entry, data) .. " ",
"Comment",
}, },

Expand Down

0 comments on commit a2eceea

Please sign in to comment.