From b4aa5e96e3e01e4075bbea2c847c740d508d1ea5 Mon Sep 17 00:00:00 2001 From: tomasky Date: Sun, 3 Jul 2022 22:57:15 +0800 Subject: [PATCH] docs: add some key map instructions --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e1ad765..84fee22 100644 --- a/README.md +++ b/README.md @@ -35,13 +35,15 @@ Here is an example with most of the default settings: ```lua require('bookmarks').setup { - save_file = "$HOME/.bookmarks", + save_file = "$HOME/.bookmarks", -- bookmarks save file path on_attach = function(bufnr) local bm = require "bookmarks" local map = vim.keymap.set - map("n","mm",bm.bookmark_toggle) -- mark signs or not signs + map("n","mm",bm.bookmark_toggle) -- add or remove bookmark at current line + map("n","mi",bm.bookmark_ann) -- add mark annotation at current line map("n","mc",bm.bookmark_clean) -- clean all marks in local buffer - map("n","mi",bm.bookmark_ann) -- add mark annotation + map("n","mn",bm.bookmark_next) -- jump to next mark in local buffer + map("n","mp",bm.bookmark_prev) -- jump to previous mark in local buffer end } ```