Project-specific notes
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.
- Toggle a floating window with
:TodoToggle - Project-aware
- Automatically create a
.git/.TODO.mdfile in the nearest parent repo - Automatically create a
~/.TODO.mdfile if you're not in a repo
- Automatically create a
- Different ways of closing the window:
- Use
:TodoToggle - Use
esc - Use
q - Use
<c-c>
- Use
- Automatically save the file when you close the floating window
- Markdown syntax
For example using lazy.nvim:
{
"pablopunk/todo.nvim",
config = true, -- initialize it. equivalent to require("todo").setup() in lazy.vim
}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({...})
}