Code Monkey home page Code Monkey logo

everybody-wants-that-line.nvim's Introduction

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.

demo.copy.mov

Table of content

Features

  • Zero dependencies, lightweight and fast
  • Adaptive colors
  • Neat winbar
  • Buffer number and modified flag
  • LSP diagnostics
  • Git branch and git status
  • Filename
  • Clean ruler and filesize
  • Global statusline or per window
  • Support: Netrw, Quickfix List, Location List (soon) and Help
  • Plugin support:

Installation

Neovim v0.7.0 and newer.

{
	"strash/everybody-wants-that-line.nvim",
	config = function()
		[your configuration here]
	end
}
use "strash/everybody-wants-that-line.nvim"
Plug "strash/everybody-wants-that-line.nvim"

Configuration

-- You can omit the config table
require("everybody-wants-that-line").setup()

-- or you can add it
require("everybody-wants-that-line").setup({
	buffer = {
		enabled = true,
		prefix = "B:",
		-- Placeholder before buffer number, e.g. "00001".
		-- If you don't want additional symbols to be displayed,
		-- set `symbol = ""` or `max_symbols = 0`.
		symbol = "0",
		-- Maximum number of symbols including buffer number.
		max_symbols = 5,
	},
	diagnostics = {
		enabled = true,
	},
	quickfix_list = {
		enabled = true,
	},
	git_status = {
		enabled = true,
	},
	filepath = {
		enabled = true,
		-- `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` a path will be shortened, e.g. "/a/b/c/filename.lua".
		-- It only works if `path` is "relative" or "full".
		shorten = false,
	},
	filesize = {
		enabled = true,
		-- `metric` can be:
		-- "decimal" - 1000 bytes == 1 kilobyte
		-- "binary" - 1024 bytes == 1 kibibyte
		metric = "decimal"
	},
	ruller = {
		enabled = true,
	},
	-- Filename is a separate widget that is located
	-- in the upper right corner of each open window.
	filename = {
		enabled = true,
	},
	-- Separator between components, e.g. " ... │ ... │ ... "
	separator = "",
})

Breaking changes

  • 413944b opts.buffer.show is deprecated. Use opts.buffer.enabled instead.

Contribution

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

everybody-wants-that-line.nvim's People

Contributors

strash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

vsedov sainttttt

everybody-wants-that-line.nvim's Issues

setup error

Prerequisites

  • [v0.7.0] neovim version =
  • [yes] I'm using LSP = (select one - yes/no)
  • [3] laststatus = (select one - 0, 1, 2, 3)

Describe the bug

I'm getting this error when running that-line:

failed to load strash/everybody-wants-that-line.nvim; reason: ...-that-line.nvim/lua/everybody-wants-that-line/colors.lua:15: Invalid highlight name: diffAdded

To Reproduce
Steps to reproduce the behavior:

  1. install current main: 6b35421
  2. run: require("everybody-wants-that-line").setup({})

Expected behavior
the plugin doesn't crash

Breaks when in dirbuf.nvim buffer

Prerequisites

  • neovim version = 0.8
  • I'm using LSP = yes
  • laststatus = 2
  • colorscheme = projekt0n/github-nvim-theme

Describe the bug
Breaks when in "elihunter173/dirbuf.nvim" buffer
Invalid expression: v:lua.require('everybody-wants-that-line')._set_statusline()

To Reproduce
Steps to reproduce the behavior:
Open dirbuf.nvim buffer

Expected behavior

Screenshots
Screenshot 2023-01-10 at 1 36 05 PM

Additional context
Add any other context about the problem here.

Setting to disable current file's path

Is your feature request related to a problem? Please describe.
Setting to disable filepath component in statusline

Describe the solution you'd like
When using winbar to show filepath, its redundant to show in statusline. Ideally every statusline component should have option to enable/disable to suit each user's usecase

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

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.