Open bezhermoso opened 5 months ago
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Hi @folke any chance you can take a quick look?
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
just a ping
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.
this starts to be a very boring action...
Did you check the docs?
Is your feature request related to a problem? Please describe.
π Hi!
Thoughts on providing a
lualine
component that would display the number of TODOs, NOTEs, etc. to the user's liking?Describe the solution you'd like
Ideally, this plugin can provide a component (e.g. a Lua function returning a string) that can be added to any segment in
lualine
e.g.The ideal result would be something like:
...or whatever the glyphs this plugin is configured with.
Describe alternatives you've considered
I wrote a plugin to do this (https://github.com/bezhermoso/todos-lualine.nvim), but it maintains its own copy of this plugin's defaults e.g. glyphs, keywords for each type. Users that override these settings would need to replicate the config for the component to maintain consistency. Not so bad for glyphs, but inconsistency arising from diverging sets of keywords is not good.
Ideally, there is a single configuration that's respected in both the functionality-proper & the
lualine
component.Alternatively:
This plugin can provide a Lua API to fetch the number of matches given a list of todo-types e.g.
fetch_counts({"TODO", "FIX"}, callback)
& expose the counts in a structured way, or simply expose the user's configuration so thattodos-lualine
can read & use it.Additional context
No response