A Neovim plugin for checking, unchecking and toggling Markdown checkboxes.
Find a file
2022-08-09 09:21:37 -04:00
lua refactor: use the variables in more places 2022-08-09 00:47:41 -04:00
init.lua feat: check and uncheck checkboxes 2022-08-08 13:58:47 -04:00
README.md docs: update example keymap 2022-08-09 09:21:37 -04:00

toggle-checkbox.nvim

A Neovim plugin for checking, unchecking and toggling Markdown checkboxes, written in Lua.

Inspired by jkramer/vim-checkbox.

Example

This is an example of the TODOs that I had whilst writing this plugin:

- [ ] Check an unchecked checkbox
- [x] Uncheck a checked checkbox
- [ ] Make check symbol customisable
- [x] Make checking toggleable
  - [x] Determine if a line contains a checked checkbox
- [x] Add README
- [x] Add example keymaps

Keymaps

There are no default keymaps but these can be added using vim.keymap.set():

vim.keymap.set("n", "<leader>tt", ":lua require('toggle-checkbox').toggle()<CR>")