Skip to content

A minimal 🤏🏾 BufExplorer alternative for lazy 🦥 people for your favorite ⚡editor ❤️.

License

Notifications You must be signed in to change notification settings

mistweaverco/bafa.nvim

Repository files navigation

Bafa Logo

bafa.nvim

Lua GitHub release (latest by date)

RequirementsInstallUsage

A minimal BufExplorer alternative for lazy people for your favorite editor.

Bafa is swahili for "buffer".

It allows you to quickly switch between buffers and delete them.

demo

Requirements

Tip

For having fancy icons, you need to install a patched font. You can find some patched fonts in the Nerd Fonts website. Also you should consider installing nvim-web-devicons for having the correct icons based on the ft in the buffer list.

Install

Via lazy.nvim:

Simple configuration

require('lazy').setup({
  -- Buffer management
  { 'mistweaverco/bafa.nvim' },
})

Advanced configuration

require('lazy').setup({
  -- Buffer management
  {
    'mistweaverco/bafa.nvim',
    opts = {
      width = 60,
      height = 10,
      title = "Bafa",
      title_pos = "center",
      relative = "editor",
      border = "rounded",
      style = "minimal",
      diagnostics = true,
    }
  },
})

Usage

require('bafa.ui').toggle()

Opens up a floating window with your buffers.

Press enter to select a buffer or press dd or D to delete a buffer.