Skip to content

benjivm/todo.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Todo

A simple Todo navigator for Neovim.

Installation

Using lazy.nvim

{
  "benjivm/todo.nvim",
  dependencies = {
    "folke/snacks.nvim",
  },
  config = function()
    require('todo-nvim').setup()
  end,
}

Configuration

Default configuration:

require('todo-nvim').setup({
    keywords = {
        "TODO",
        "@todo",
        "FIXME",
        "FIX",
        "BUG",
        "HACK",
        "WARNING",
        "WARN",
        "NOTE",
        "INFO",
        "PERF",
        "OPTIMIZE",
        "XXX",
    },

    search_paths = { "." },

    keymap = "<leader>ft",

    highlights = {
        TODO = "TodoSignTODO",
        ["@todo"] = "TodoSignTODO",
        FIXME = "TodoSignFIXME",
        FIX = "TodoSignFIXME",
        BUG = "TodoSignBUG",
        HACK = "TodoSignHACK",
        WARNING = "TodoSignWARNING",
        WARN = "TodoSignWARNING",
        NOTE = "TodoSignNOTE",
        INFO = "TodoSignINFO",
        PERF = "TodoSignPERF",
        OPTIMIZE = "TodoSignPERF",
        XXX = "TodoSignXXX",
    },

    signs = {
        TODO = { text = "", texthl = "TodoSignTODO" },
        ["@todo"] = { text = "", texthl = "TodoSignTODO" },
        FIXME = { text = "!", texthl = "TodoSignFIXME" },
        FIX = { text = "!", texthl = "TodoSignFIXME" },
        BUG = { text = "", texthl = "TodoSignBUG" },
        HACK = { text = "", texthl = "TodoSignHACK" },
        WARNING = { text = "", texthl = "TodoSignWARNING" },
        WARN = { text = "", texthl = "TodoSignWARNING" },
        NOTE = { text = "", texthl = "TodoSignNOTE" },
        INFO = { text = "", texthl = "TodoSignINFO" },
        PERF = { text = "", texthl = "TodoSignPERF" },
        OPTIMIZE = { text = "", texthl = "TodoSignPERF" },
        XXX = { text = "", texthl = "TodoSignXXX" },
    },
})

Use .gitignore or ripgrep's .ignore file to exclude directories from search.

About

A simple Todo navigator for Neovim.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages