Skip to content

jackielii/neo-tree-harpoon.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

neo-tree-harpoon.nvim

Status: Been using it for a while now. Feature requests are welcome.

Show Harpoon buffers in a neo-tree panel

screenshot

Install

Install via lazy.nvim:

Example:

  {
    "nvim-neo-tree/neo-tree.nvim",
    branch = "v3.x",
    dependencies = {
      "nvim-lua/plenary.nvim",
      "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
      "MunifTanjim/nui.nvim",
      "3rd/image.nvim",              -- Optional image support in preview window: See `# Preview Mode` for more information
      "jackielii/neo-tree-harpoon.nvim"
    },
    cmd = "Neotree",
    opts = {
      sources = { "filesystem", "buffers", "git_status", "document_symbols", "harpoon-buffers" },
  }

Add edgy to fix the position of the harpoon-buffers panel in the tree.:

  {
    "folke/edgy.nvim",
    event = "VeryLazy",
    opts = {
      keys = {
        ...
      },
      left = {
        {
          title = "Harpoon Buffers",
          ft = "neo-tree",
          filter = function(buf)
            return vim.b[buf].neo_tree_source == "harpoon-buffers"
          end,
          pinned = true,
          open = "Neotree position=top harpoon-buffers",
          size = { height = 0.2 },
        },

	...

TODO

  • delete action d to remove buffer from harpoon
  • add action to move buffer up/down in the list

About

Show Harpoon buffers in a neo-tree panel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages