https://github.com/hugginsio/twig.nvim
A tiny Taskwarrior integration plugin.
https://github.com/hugginsio/twig.nvim
Last synced: 27 days ago
JSON representation
A tiny Taskwarrior integration plugin.
- Host: GitHub
- URL: https://github.com/hugginsio/twig.nvim
- Owner: hugginsio
- License: mit
- Created: 2023-04-23T21:24:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-04T00:10:14.000Z (almost 2 years ago)
- Last Synced: 2025-06-04T07:23:50.837Z (4 months ago)
- Language: Lua
- Homepage:
- Size: 10.7 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# twig.nvim
**twig.nvim** is a small and lightweight Taskwarrior integration plugin.
Twig is built to complement how I use my personal wiki alongside Taskwarrior for project management. In my workflow, every project rolls into a single file. This plugin provides a quick way to view all tasks associated with the current buffer/project. In short: `twig.md` = `task project:twig`.
## Requirements
- Neovim >= 0.8.0
- Taskwarrior## Commands
- `TwigTasksForBuffer`: list tasks associate with the current buffer.
## Configuration
```lua
return {
project_pattern = ".+", -- an additional Lua match pattern to apply to the buffer name
fallback = true, -- if `project_pattern` does not match, fall back to the buffer name alone
}
```Twig will apply the `project_pattern` to the current buffer name before querying Taskwarrior with Lua's `:match()` method. If that match returns `nil` and `fallback` is true, then the current buffer name will be used instead.