Skip to content

Conversation

fiqryq
Copy link
Contributor

@fiqryq fiqryq commented Jun 10, 2025

📑 Description

Add plugins wakastat.nvim for display WakaTime coding stats in your Neovim statusline — supports daily, weekly, or monthly views, custom formatting, and async updates.

ℹ Additional Information

CleanShot 2025-08-09 at 21 50 50

Usage

return {
  {
    "fiqryq/wakastat.nvim",
    event = "VeryLazy",
    cmd = { "WakastatRefresh", "WakastatStatus" },
    opts = {
      args = { "--today" },                  -- or "--week", "--month"
      format = "Today Coding Time: %s",      -- %s replaced with time
      update_interval = 300,                 -- seconds between updates
      enable_timer = true,
    },
    config = function(_, opts)
      require("wakastat").setup(opts)
    end,

    specs = {
      {
        "rebelot/heirline.nvim",
        optional = true,
        opts = function(_, opts)
          opts.statusline = opts.statusline or {}
          table.insert(opts.statusline, 5, {  -- insert at position 5
            provider = function()
              return " " .. require("wakastat").status() .. " "
            end,
            hl = "Wakastat",
            update = { "User", pattern = "WakastatUpdated" },
          })
        end,
      },
    },
  },
}

Copy link

github-actions bot commented Jun 10, 2025

Review Checklist

Does this PR follow the [Contribution Guidelines](development guidelines)? Following is a partial checklist:

Proper conventional commit scoping:

  • If you are adding a new plugin, the scope would be the name of the category it is being added into. ex. feat(utility): added noice.nvim plugin

  • If you are modifying a pre-existing plugin or pack, the scope would be the name of the plugin folder. ex. fix(noice-nvim): fix LSP handler error

  • Pull request title has the appropriate conventional commit type and scope where the scope is the name of the pre-existing directory in the project as described above

  • README is properly formatted and uses fenced in links with <url> unless they are inside a [title](url)

  • Entry returns a single plugin spec with the new plugin as the only top level spec (not applicable for recipes or packs).

  • Proper usage of opts table rather than setting things up with the config function.

  • Proper usage of specs table for all specs that are not dependencies of a given plugin (not applicable for recipes or packs).

@fiqryq fiqryq changed the title feat(wakastat-nvim): add plugins wakastat.nvim feat(wakastat): add plugins wakastat.nvim Jun 10, 2025
@Uzaaft Uzaaft self-assigned this Jun 11, 2025
@Uzaaft Uzaaft changed the title feat(wakastat): add plugins wakastat.nvim feat(bars-and-lines): add plugins wakastat.nvim Jun 11, 2025
Copy link
Member

@Uzaaft Uzaaft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on your docs @fiqryq this seems incomplete.

@Uzaaft Uzaaft marked this pull request as draft August 2, 2025 10:08
@fiqryq
Copy link
Contributor Author

fiqryq commented Aug 9, 2025

hi @Uzaaft i already update the spec for plugins.

@fiqryq fiqryq marked this pull request as ready for review August 9, 2025 14:50
@fiqryq fiqryq requested a review from Uzaaft August 9, 2025 14:51
@Uzaaft Uzaaft merged commit 383f86e into AstroNvim:main Aug 9, 2025
16 checks passed
@Uzaaft
Copy link
Member

Uzaaft commented Aug 9, 2025

The insert at position 5 stuff seems jank. But shipping this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants