pablopunk / todo.nvim

Project-specific notes for neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

todo.nvim

Project-specific notes

screencast

This plugin opens a floating window to write quick notes/todo list for your project. If you're not on a repo, it wil keep a global file for notes in your home folder.

Features

  • Toggle a floating window with :TodoToggle
  • Project-aware
    • Automatically create a .git/.TODO.md file in the nearest parent repo
    • Automatically create a ~/.TODO.md file if you're not in a repo
  • Different ways of closing the window:
    • Use :TodoToggle
    • Use esc
    • Use q
    • Use <c-c>
  • Automatically save the file when you close the floating window
  • Markdown syntax

Installation

For example using lazy.nvim:

{
  "pablopunk/todo.nvim",
  config = true, -- initialize it. equivalent to require("todo").setup() in lazy.vim
}

Usage

It will give you a new command :TodoToggle to open/close the .TODO.md file. You can map it to whatever you want. I map it to <leader>t:

{
  "pablopunk/todo.nvim",
  opts = { map = "<leader>t" } -- same as .setup({...})
}

About

Project-specific notes for neovim


Languages

Language:Lua 100.0%