Giter Club home page Giter Club logo

buffertag's Introduction

Buffertag

buffertag screenshot

Buffertag is a very simple plugin which always shows the buffer name in non-focused windows.

This is designed to be used with the set laststatus=3 configuration which removes the unnecessary status lines on each window.

This idea came from enjoying the space saving of set laststatus=3 but missing the ability to quickly reference which buffers are in which windows. I split hard, and I split often.

Usage

Include in Vim Plug (or your package manager of choice)

Plug 'ldelossa/buffertag'

Call setup with an optional config

lua require('buffertag').setup({
    -- accepts any border options that `nvim_open_win` accepts.
    -- see ":help vim.api.nvim_open_win"
    border = "none",
    -- By default if the buffer name is too wide for the pane it's in, it will
    -- display and overlap the pane. By setting this to true, the buffer name will
    -- be truncated to fit within the pane, ensuring the floating window does not
    -- overlap any other panes.
    limit_width = false,
    -- if `vim.bo.modified` is `true` for the current buffer,
    -- display modified symbol before the buffer name.
    modified_symbol = "[+]", -- other modified symbol: "โ—" 
})

Toggle it on and off

: BuffertagToggle

Demo

Checkout the demo video here

buffertag's People

Contributors

ldelossa avatar phdhary avatar hiberabyss avatar jackfranklin avatar trmckay 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.