mirror of
https://github.com/opdavies/toggle-checkbox.nvim.git
synced 2025-01-22 20:07:32 +00:00
docs: add README
This commit is contained in:
parent
f1e335a96d
commit
acf32d44b0
27
README.md
Normal file
27
README.md
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# toggle-checkbox.nvim
|
||||||
|
|
||||||
|
A Neovim plugin for checking, unchecking and toggling Markdown checkboxes, written in Lua.
|
||||||
|
|
||||||
|
Inspired by [jkramer/vim-checkbox](https://github.com/jkramer/vim-checkbox).
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
This is an example of the TODOs that I had whilst writing this plugin:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
- [ ] 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()`:
|
||||||
|
|
||||||
|
```lua
|
||||||
|
vim.keymap.set("n", "<leader>tt", ":lua require('toggle-checkboxes').toggle()")
|
||||||
|
```
|
Loading…
Reference in a new issue