A simple Neovim filetype plugin for .todo files with checkbox toggling and syntax highlighting.
- Automatic filetype detection for
.todofiles - Checkbox toggling with a single keypress
- Toggle between
- [ ](unchecked) and- [x](checked)
- Toggle between
- Syntax highlighting with visual differentiation:
- Unchecked items appear in default text color
- Checked items appear dimmed with strikethrough
- Indentation (4 spaces) is highlighted as comments
Install the plugin with your preferred package manager:
{
"rrossmiller/todos.nvim",
config = function()
require("todos").setup()
end
}- Create or open a file with the
.todoextension - Write your todo items using markdown checkbox syntax:
- [ ] Unchecked task - [x] Completed task - Press
ttin normal mode to toggle the checkbox on the current line
The plugin works out of the box with no configuration needed. Just call setup():
require("todos").setup()When a .todo file is opened:
tt(normal mode) - Toggle checkbox between[ ]and[x]
- Text width is automatically set to 110 characters for
.todofiles
- [ ] Write README
- [x] Implement checkbox toggling
- [ ] Add more features
- [ ] Nested item support
- [x] Syntax highlighting