From a2eceea87fbcaf44d4197949693597e7e4deddf1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 13 Oct 2024 07:56:36 +0000 Subject: [PATCH] chore(build): auto-generate docs --- docs/config.md | 24 +----------------------- docs/configuration_recipes.md | 2 +- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/docs/config.md b/docs/config.md index f695132..f2809aa 100644 --- a/docs/config.md +++ b/docs/config.md @@ -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 = {}, diff --git a/docs/configuration_recipes.md b/docs/configuration_recipes.md index a508c10..8e05b91 100644 --- a/docs/configuration_recipes.md +++ b/docs/configuration_recipes.md @@ -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", }, },