Bookmark.nvim is a Neovim plugin that allows you to quickly jump to your bookmarked locations.
- Bookmark locations in a sidebar
- Group bookmarks together
- Add bookmarks with command
- Add bookmarks group with command
- Change nvim current workspace directory to group directory
- Persist bookmarks to file
- Sidebar features
- Rename bookmark/group
- Delete bookmark/group
- Show information about bookmarks/groups
- Move bookmarks/groups up/down
Use your favorite plugin manager to install Bookmark.nvim. For example,
with vim-plug:
Plug 'JefferyBoy/bookmark_nvim'
with lazy.nvim:
use {
"JefferyBoy/bookmark_nvim",
dependencies = {
"MunifTanjim/nui.nvim",
},
config = function()
require("bookmark_nvim").setup()
end,
}
:BookmarkToggleSideBar
Toggles the Bookmark sidebar.:BookmarkAddItem
Adds a new bookmark at the current cursor line.:BookmarkAddGroup
Adds a new group of bookmarks.:Telescope bookmarks
Telescope plugin to search and navigate bookmarks.
<CR>
Focus group.<CR>
Open the bookmark in a new tab.d
Delete the bookmark/group.r
Rename the bookmark/group.i
Show information about the bookmark/group.o
Show menu for the bookmark/group.<C-Up>
Move the bookmark/group up.<C-Down>
Move the bookmark/group down.
You can also custom the keymaps
-- default configs
local opts = {
sidebar = {
-- fix keymaps conflict with other plugins(global keymaps)
fix_keymap_conflict = true,
keymaps = {
-- open bookmark
bookmark_open = "<CR>",
-- delete bookmark
bookmark_delete = "d",
-- show bookmark info
bookmark_info = "i",
-- rename bookmark
bookmark_rename = "r",
-- toggle wrap
bookmark_toggle_wrap = "f",
-- show menu
bookmark_show_menu = "o",
-- move bookmark up
bookmark_move_up = "<C-Up>",
-- move bookmark down
bookmark_move_down = "<C-Down>",
-- cursor and selected next group
bookmark_group_next = "<Tab>",
-- cursor and selected previous group
bookmark_group_prev = "<S-Tab>",
},
},
}
require("bookmark_nvim").setup(opts)
SideBar
Telescope plugin