You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to display the treesitter context a little differently - in a winbar via other plugins like LuaLine or Feline. Those plugins already provide you with the custom sections where you can put any arbitrary text, and this text in my case would be the treesitter context hierarchy.
Would it be possible to allow overriding the built-in open/close function? When a user-supplied function is specified, then the plugin will not draw any UI.
Example:
require'treesitter-context'.setup{
-- ...on_open=function(ctx)
-- ctx here is for example an array of items to display, it could have some additional properties as needed.end,
on_close=function()
end,
}
The text was updated successfully, but these errors were encountered:
defr0std
changed the title
[feature request] Expose API to get the context programmatically
[feature request] Expose API to replace the open/close functions
Feb 8, 2023
lewis6991
changed the title
[feature request] Expose API to replace the open/close functions
Expose API to replace the open/close functions
Mar 8, 2023
I would like to display the treesitter context a little differently - in a winbar via other plugins like LuaLine or Feline. Those plugins already provide you with the custom sections where you can put any arbitrary text, and this text in my case would be the treesitter context hierarchy.
Would it be possible to allow overriding the built-in open/close function? When a user-supplied function is specified, then the plugin will not draw any UI.
Example:
The text was updated successfully, but these errors were encountered: