add some documentation

This commit is contained in:
Adam 2024-01-04 05:28:30 -05:00
parent 8f7f8ca092
commit 7c52b2d498

View file

@ -1,3 +1,23 @@
-- ## Usage
--
-- Either use the command `CommentToggle`, e.g.:
--
-- - `CommentToggle` comment/uncomment current line
-- - `67,69CommentToggle` comment/uncomment a range
-- - `'<,'>CommentToggle` comment/uncomment a visual selection
--
-- Or use the default mappings:
--
-- - `gcc` comment/uncomment current line, this does not take a count, if you want
-- a count use the `gc{count}{motion}`
-- - `gc{motion}` comment/uncomment selection defined by a motion (as lines are
-- commented, any comment toggling actions will default to a linewise):
-- - `gcip` comment/uncomment a paragraph
-- - `gc4w` comment/uncomment current line
-- - `gc4j` comment/uncomment 4 lines below the current line
-- - `dic` delete comment block
-- - `gcic` uncomment commented block
require('nvim_comment').setup(
{
-- Linters prefer comment and line to have a space in between markers