Skip to content

Commit

Permalink
Merge branch 'main' of github.com:hedyhli/outline.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
hedyhli committed Jan 5, 2025
2 parents 20aa065 + d0d6ba0 commit 69e1e24
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions doc/outline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 69e1e24

Please sign in to comment.