Skip to content

Latest commit

 

History

History
52 lines (41 loc) · 1.17 KB

File metadata and controls

52 lines (41 loc) · 1.17 KB

juggler.nvim

Reimplementation of LustyJuggler for Neovim.

Todo

  • Differentiation of files with same basename

Usage

  1. Press <leader>j to display the most recently used buffers in the cmdline bar. Each buffer is mapped to a key on the home row.
  2. Press a home row key to highlight buffer.
  3. Press the same key again to switch to that buffer.

Installation

Using lazy.nvim:

{
  "ernstwi/juggler.nvim",
  opts = {},
  keys = {
    {
      "<leader>j",
      function()
        require("juggler").activate()
      end,
      desc = "Juggler",
    },
  },
  dependencies = {
    "nvimtools/hydra.nvim",
  },
}

Configuration

Default opts:

{
  -- Home row keys used to select buffer. Tweak this for alternative keyboard layouts.
  keys = "asdfghjkl",
  -- Highlight groups used for the cmdline UI.
  highlight_group_active = "Question",      -- The selected buffer.
  highlight_group_inactive = "None",        -- All other buffers.
  highlight_group_separator = "Whitespace", -- The `|` between buffers. Also used for the
                                            -- line cutoff indicator `>`.
}