Merge branch 'main' of github.com:hedyhli/outline.nvim

This commit is contained in:
~hedy
2025-01-05 09:13:37 +08:00

View File

@@ -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