Skip to content
/ bufcmd Public

A minimal alternative to buffer lines in Neovim

License

Notifications You must be signed in to change notification settings

jradam/bufcmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BufCmd

a minimal alternative to buffer lines

Lua Neovim


Alt Text


Why do I exist?

Most of the time, your command line sits around taking up a whole row without being useful. This plugin fills that dead space with your buffers, while still allowing messages to get through.

Installation

Install with your favourite package manager.

-- lazy.nvim
{
  "jradam/bufcmd",
  opts = { },
}

Options

These are the default options.

opts = {
  max_name_length = 20,
  show_extensions = false,
  compensation = 12,
  reverse_order = false,
  chars = {
    max_string = " ... ",
    left_brace = "[",
    right_brace = "]",
    modified_left = "",
    modified_right = "+",
    nameless_buffer = "-",
  },
  theme = {
    active = { fg = "", bg = "" },
    inactive = { fg = "", bg = "" },
    modified = { fg = "", bg = "" },
    active_modified = { fg = "", bg = "" },
  },
  keys = {
    next_buffer = "<Tab>",
    prev_buffer = "<S-Tab>",
    close_buffer = "<leader>x",
    close_others = "<leader>z",
    start_bufcmd = "<leader><Tab>",
    stop_bufcmd = "<leader><S-Tab>",
  },
}

Troubleshooting

If you continuously see...

Press ENTER or type command to continue

...in your command line, it means BufCmd is overflowing, and you need to set a higher 'compensation' value. You can run the included :BufCmdTest to find the exact best value for your editor.

Other buffer management tools

Credits

About

A minimal alternative to buffer lines in Neovim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages