Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: nvim-lualine component #259

Closed
1 task done
bezhermoso opened this issue Apr 9, 2024 · 10 comments
Closed
1 task done

feature: nvim-lualine component #259

bezhermoso opened this issue Apr 9, 2024 · 10 comments
Labels
enhancement New feature or request

Comments

@bezhermoso
Copy link

Did you check the docs?

  • 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

Copy link
Contributor

github-actions bot commented Jul 6, 2024

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 github-actions bot added the stale label Jul 6, 2024
@bezhermoso
Copy link
Author

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

@github-actions github-actions bot removed the stale label Jul 7, 2024
Copy link
Contributor

github-actions bot commented Aug 7, 2024

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 github-actions bot added the stale label Aug 7, 2024
@Mte90
Copy link

Mte90 commented Aug 7, 2024

just a ping

@github-actions github-actions bot removed the stale label Aug 8, 2024
Copy link
Contributor

github-actions bot commented Sep 7, 2024

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 github-actions bot added the stale label Sep 7, 2024
@Mte90
Copy link

Mte90 commented Sep 9, 2024

this starts to be a very boring action...

@github-actions github-actions bot removed the stale label Sep 10, 2024
Copy link
Contributor

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 github-actions bot added the stale label Oct 10, 2024
@Mte90
Copy link

Mte90 commented Oct 10, 2024

Sigh

@github-actions github-actions bot removed the stale label Oct 11, 2024
Copy link
Contributor

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 github-actions bot added the stale label Nov 10, 2024
@Mte90
Copy link

Mte90 commented Nov 11, 2024

I am here again

@github-actions github-actions bot removed the stale label Nov 12, 2024
@bezhermoso bezhermoso closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants