strash/everybody-wants-that-line.nvim

github github
statusline
star 16
stars
alert-circle 0
open issues
users 1
subscribers
git-branch 0
forks
CREATED

2022-06-17

UPDATED

12 days ago


Everybody wants that line

Minimalistic, informative and elegant statusline for neovim. Plugin uses colors from your current colorscheme, so it looks natural. It adapts if you change colorscheme or switch to a light or a dark theme.

Screenshots

Examples

screenshot

What is what

screenshot

Features

  • Adaptive colors
  • Current buffer number and buffer modified flag
  • LSP diagnostics
  • Current git branch and git status (additions and deletions throughout current project)
  • Current filename
  • Clean ruler
  • Global statusline or in each window
  • Support for Quickfix List, Location List, Help
  • Plugins:
    • Telescope,
    • Neogit,
    • Fugitive,
    • NvimTree
    • Packer,

Installation

Neovim v0.7.0 and newer.

packer.nvim

use "strash/everybody-wants-that-line.nvim"

vim-plug

Plug "strash/everybody-wants-that-line.nvim"

Configuration

These are the defaults.

-- if you ok with defaults
require("everybody-wants-that-line").setup()

-- if you hate defaults
require("everybody-wants-that-line").setup({
    buffer = {
        show = true,
        prefix = "B:",
        -- Symbol before buffer number, e.g. "0000.".
        -- If you don't want additional symbols to be displayed, set `buffer.max_symbols = 0`.
        symbol = "0",
        -- Maximum number of symbols including buffer number.
        max_symbols = 5,
    },
    filepath = {
        -- `path` can be one of these:
        -- "tail" - file name only
        -- "relative" - relative to working directory
        -- "full" - full path to the file
        path = "relative",
        -- If `true` the path will be shortened, e.g. "/a/b/c/filename.lua".
        -- It only works if `path` is "relative" or "full".
        shorten = false,
    },
    filesize = {
        -- `metric` can be:
        -- "decimal" - 1000 bytes == 1 kilobyte
        -- "binary" - 1024 bytes == 1 kibibyte
        metric = "decimal"
    },
    -- Separator between blocks, e.g. " ... │ ... │ ... "
    separator = "│",
})

Contribution

If you found a bug please open an issue or request a feature. All contributions are welcome! Just open a PR.