Skip to content

Couldn't setup custom todo_states #228

Description

@antonkri97

Hey mate, thanks for you work, I really enjoy this plugin.

Here is my basic setup, I struggled with custom todo_states. It just did't affect my markdown. What I miss?

return {
  "bngarren/checkmate.nvim",
  ft = "markdown", -- Lazy loads for Markdown files matching patterns in 'files'
  opts = {

    files = { "*.md" }, -- any .md file (instead of defaults)
    todo_states = {
      -- Built-in states (cannot change markdown or type)
      unchecked = { marker = "" },
      checked = { marker = "" },

      -- Custom states
      in_progress = {
        marker = "",
        markdown = ".", -- Saved as `- [.]`
        type = "incomplete", -- Counts as "not done"
        order = 50,
      },
      cancelled = {
        marker = "",
        markdown = "c", -- Saved as `- [c]`
        type = "complete", -- Counts as "done"
        order = 2,
      },
      on_hold = {
        marker = "",
        markdown = "/", -- Saved as `- [/]`
        type = "inactive", -- Ignored in counts
        order = 100,
      },
    },
  },
}
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions