Skip to content

Latest commit

 

History

History
60 lines (48 loc) · 1.37 KB

README.md

File metadata and controls

60 lines (48 loc) · 1.37 KB

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