From d0d6ba0d350b2d50f8aee68a63ba39cb0ab4247e Mon Sep 17 00:00:00 2001 From: hedyhli Date: Sun, 5 Jan 2025 00:59:02 +0000 Subject: [PATCH] chore(vimdoc): Auto update --- doc/outline.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/doc/outline.txt b/doc/outline.txt index d6293bd..0c00f9b 100644 --- a/doc/outline.txt +++ b/doc/outline.txt @@ -810,6 +810,24 @@ use based on the filetype. } < +The `icon_fetcher` function may also accept a third parameter, the symbol which +type is outline.Symbol. Provider can add extra info to symbol. For example, +access specifier information can be added at the icon location. + +>lua + symbols = { + icon_fetcher = function(kind, bufnr, symbol) + local access_icons = { public = '○', protected = '◉', private = '●' } + local icon = require('outline.config').o.symbols.icons[kind].icon + -- ctags provider add `access` key + if symbol and symbol.access then + return icon .. ' ' .. access_icons[symbol.access] + end + return icon + end, + } +< + See |outline-this-section| for other examples of this function. - You can customize the split command used for creating the outline window split