diff --git a/README.md b/README.md index d8c548b6..37743532 100644 --- a/README.md +++ b/README.md @@ -200,6 +200,21 @@ smap (doge-comment-jump-forward) smap (doge-comment-jump-backward) ``` +Or with Lua for Neovim: + +```lua +-- Generate comment for current line +vim.keymap.set('n', 'd', '(doge-generate)') + +-- Interactive mode comment todo-jumping +vim.keymap.set('n', '', '(doge-comment-jump-forward)') +vim.keymap.set('n', '', '(doge-comment-jump-backward)') +vim.keymap.set('i', '', '(doge-comment-jump-forward)') +vim.keymap.set('i', '', '(doge-comment-jump-backward)') +vim.keymap.set('x', '', '(doge-comment-jump-forward)') +vim.keymap.set('x', '', '(doge-comment-jump-backward)') +``` + ### `g:doge_mapping` Default: `'d'`