Skip to content

An easy and powerful bookmark manager with telescope

License

Notifications You must be signed in to change notification settings

zongben/navimark.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

navimark.nvim

An easy and powerful bookmark manager with telescope

demo_video.mp4

Features

  • Displays a bookmark sign wherever you set it
  • Bookmarks are scoped by different stacks
  • Uses telescope to preview and navigate bookmarks
  • Allows bookmarks to be persisted

Installation

With lazy.nvim

{
  "zongben/navimark.nvim",
  dependencies = {
    "nvim-telescope/telescope.nvim",
    "nvim-lua/plenary.nvim"
  },
  config = function()
    require("navimark").setup()
  end,
}

Configuration

The default configuration is as follows

{
  --set "" to disable keymapping
  keymap = {
    base = {
      mark_toggle = "<leader>mm",
      mark_add = "<leader>ma",
      mark_remove = "<leader>mr",
      goto_next_mark = "]m",
      goto_prev_mark = "[m",
      open_mark_picker = "<leader>fm",
    },
    telescope = {
      n = {
        delete_mark = "d",
        clear_marks = "c",
        new_stack = "n",
        next_stack = "<Tab>",
        prev_stack = "<S-Tab>",
        rename_stack = "r",
        delete_stack = "D",
        open_all_marked_files = "<C-o>", -- open all marked files in current stack
      },
    },
  },
  sign = {
    text = "",
    color = "#FF0000",
  },
  persist = false,
}

API

You can use the following APIs to customize your config

local stack = require("navimark.stack")
stack.mark_toggle()
stack.mark_add()
stack.mark_remove()
stack.goto_next_mark()
stack.goto_prev_mark()

About

An easy and powerful bookmark manager with telescope

Topics

Resources

License

Stars

Watchers

Forks

Languages