Coder Social home page Coder Social logo

nvim-bufbar's Introduction

nvim-bufbar

A simple and very light bufferline for Neovim written in Lua.

Note: I won't add new features/themes if I don't need them. Feel free to submit PRs or fork the plugin though.

preview

By default only the number of hidden buffers are displayed, see configuration to show their name instead.

The plugin highlights buffers in different colors based on their type. With the default colorscheme, modified buffers are blue, unmodified ones are green and terminal buffers are red. Tabs are shown in the top right corner.

Installation

With packer.nvim:

use {'ojroques/nvim-bufbar'}

With paq-nvim:

paq {'ojroques/nvim-bufbar'}

Usage

In your init.lua:

require('bufbar').setup {}

If you're using a .vimrc or init.vim:

lua require('bufbar').setup {}

Configuration

You can pass options to the setup() function. Here are all available options with their default settings:

M.options = {
  theme = 'default',         -- the theme in 'lua/bufbar/themes' to use
  show_tabs = true,          -- show tabs
  show_bufname = 'current',  -- show full buffer name ('current', 'visible' or 'all')
  show_flags = true,         -- show buffer flags
  show_alternate = false,    -- show alternate buffer
  modifier = ':t',           -- the name modifier
  term_modifier = ':t',      -- the name modifier for terminal buffers
  separator = '|',           -- the buffer separator
}

License

LICENSE

nvim-bufbar's People

Contributors

brianrbrenner avatar ojroques avatar jogubo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.