feature: `nvim-lualine` component
Did you check the docs?
- [X] I have read all the todo-comments.nvim 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.
local todos_component = require("todo-comments.lualine").component({
order = {"TODO", "FIX"},
})
require('lualine').setup({
sections = {
lualine_y = {'progress', todos_component },
}
})
The ideal result would be something like:
✅ 12 🐞 3
...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 that todos-lualine can read & use it.
Additional context
No response
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...
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.
Sigh