bookmarks.nvim is a simple bookmarks manager for neovim. It is inspired by bookmarks.vim.
with nvim-plug:
require('plug').add({
{
'wsdjeg/bookmarks.nvim',
keys = {
{ 'n', 'mm', '<Plug>(bookmarksToggle)', { noremap = false } },
{ 'n', 'mi', '<Plug>(bookmarksAnnotation)', { noremap = false } },
{ 'n', 'mn', '<Plug>(bookmarksNext)', { noremap = false } },
{ 'n', 'mc', '<Plug>(bookmarksClear)', { noremap = false } },
{ 'n', 'ma', '<Plug>(bookmarksListAll)', { noremap = false } },
{ 'n', 'mp', '<Plug>(bookmarksPrevious)', { noremap = false } },
},
opts = {
sign_text = '=>',
sign_hl_group = 'Normal',
},
depends = { { 'wsdjeg/notify.nvim' }, { 'wsdjeg/logger.nvim' } },
},
})| mappings | description |
|---|---|
<Plug>(bookmarksToggle) |
toggle bookmark of current line |
<Plug>(bookmarksAnnotation) |
add annotation bookmark |
<Plug>(bookmarksNext) |
jump to next bookmark in current buffer |
<Plug>(bookmarksClear) |
clear bookmarks in current buffer |
<Plug>(bookmarksListAll) |
list all bookmarks |
<Plug>(bookmarksPrevious) |
jump to previous bookmark in current buffer |
This plugin also provides a telescope extension, which can be started using the :Telescope bookmarks command.
:Picker bookmarks
Like this plugin? Star the repository on GitHub.
Love this plugin? Follow me on GitHub.
This project is licensed under the GPL-3.0 License.