Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

neo-tree-mark

This plugin integrates mark module of fruits.nvim, ensure mark module is enabled. Refer to fruits.nvim for more configurations.

Add marks, open marks, previewing marks

Setup

lazy.nvim example:

{
  {
    "nvim-neo-tree/neo-tree.nvim",
    opts = function(_, opts)
      opts.mark = {}
      table.insert(opts.sources, "mark")
      return opts
    end,
  },

  {
    "ZachVec/fruits.nvim",
    event = "BufWinEnter",
    opts = {
      mark = { enable = true },  -- ensure mark module is enabled.
    },
  },

  {
    "ZachVec/neo-tree-mark.nvim",
    dependencies = {
      { "nvim-neo-tree/neo-tree.nvim" },
      { "ZachVec/fruits.nvim" },
    },
    keys = {
      { "<leader>am", function () require("neo-tree.sources.mark"):create_mark() end, desc = "Create Mark at cursor" },
      { "<leader>em", function () require("neo-tree.command").execute({ source = "mark", toggle = true }) end, desc = "Mark Explorer" }
    },
  }
}

Usage

  1. Toggle mark tree by require("neo-tree.command").execute({ source = "mark", toggle = true })
  2. Create a flow by pressing a in the mark tree by default.
  3. Select a flow by pressing c in the mark tree by default. After this, (selected) should appear after the name of the flow.
  4. Call require("neo-tree.sources.mark"):create_mark() to create mark under the cursor.
  5. And now, thanks to neo-tree, you can preview the marks by pressing p by default.

About

Track the marks via neo-tree!

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages