add some documentation
This commit is contained in:
parent
8f7f8ca092
commit
7c52b2d498
1 changed files with 20 additions and 0 deletions
|
@ -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(
|
require('nvim_comment').setup(
|
||||||
{
|
{
|
||||||
-- Linters prefer comment and line to have a space in between markers
|
-- Linters prefer comment and line to have a space in between markers
|
||||||
|
|
Loading…
Add table
Reference in a new issue