docs: Reword details regarding symbols.icon_fetcher

This commit is contained in:
~hedy
2024-07-05 20:45:35 +08:00
parent 287ec77eab
commit 8bfb5435d7
2 changed files with 6 additions and 4 deletions

View File

@@ -391,13 +391,14 @@ Pass a table to the setup call with your configuration options.
-- You can use a custom function that returns the icon for each symbol kind.
-- This function takes a kind (string) as parameter and should return an
-- icon as string.
---@param kind string
---@param kind string Key of the icons table below
---@param bufnr integer Code buffer
---@returns string|boolean The icon string (key of `icons` table), or `false`
---@returns string|boolean The icon string to display, such as "f", or `false`
--- to fallback to `icon_source`.
icon_fetcher = nil,
-- 3rd party source for fetching icons. Fallback if icon_fetcher returned
-- empty string. Currently supported values: 'lspkind'
-- 3rd party source for fetching icons. This is used as a fallback if
-- icon_fetcher returned an empty string.
-- Currently supported values: 'lspkind'
icon_source = nil,
-- The next fallback if both icon_fetcher and icon_source has failed, is
-- the custom mapping of icons specified below. The icons table is also