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

Install

Via lazy.nvim:

Simple configuration

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

Advanced configuration

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

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.