Go to file
2022-07-03 17:26:19 +08:00
lua refactor(signs): move some method to actions 2022-07-03 17:26:19 +08:00
.gitignore feat!: update setup,add read/write marks json 2022-07-01 16:28:09 +08:00
LICENSE Initial commit 2022-06-30 11:39:46 +08:00
README.md refactor(signs): move some method to actions 2022-07-03 17:26:19 +08:00

bookmarks.nvim

A Bookmarks Plugin With Global File Store For Neovim Written In Lua.

Requirements

  • Neovim >= 0.7.0

Installation

With packer.nvim:

use {
'tomasky/bookmarks.nvim',
-- tag = 'release' -- To use the latest release
}

Usage

For basic setup with all default configs using packer.nvim

use {
  'tomasky/bookmarks.nvim',
  config = function()
    require('bookmarks').setup()
  end
}

Here is an example with most of the default settings:

require('bookmarks').setup {
  save_file = "$HOME/.bookmarks",
  on_attach = function(bufnr)
    local bm = require "bookmarks"
    local map = vim.keymap.set
    map("n","mm",bm.bookmark_toggle)
    map("n","mc",bm.bookmark_clean)
    map("n","mi",bm.bookmark_ann)
  end
}

Credits