todo-comments.nvim icon indicating copy to clipboard operation
todo-comments.nvim copied to clipboard

feature: `nvim-lualine` component

Open bezhermoso opened this issue 2 years ago • 8 comments

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

bezhermoso avatar Apr 09 '24 04:04 bezhermoso

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.

github-actions[bot] avatar Jul 06 '24 01:07 github-actions[bot]

Hi @folke any chance you can take a quick look?

bezhermoso avatar Jul 06 '24 04:07 bezhermoso

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.

github-actions[bot] avatar Aug 07 '24 01:08 github-actions[bot]

just a ping

Mte90 avatar Aug 07 '24 08:08 Mte90

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.

github-actions[bot] avatar Sep 07 '24 01:09 github-actions[bot]

this starts to be a very boring action...

Mte90 avatar Sep 09 '24 08:09 Mte90

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.

github-actions[bot] avatar Oct 10 '24 02:10 github-actions[bot]

Sigh

Mte90 avatar Oct 10 '24 11:10 Mte90