Skip to content

abhilash26/zenline.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zenline.nvim

A simple statusline for neovim written in lua.

image

🚧 WIP 🚧

Requirements

  • Requires neovim version >= 0.10
  • vim.opt.laststatus=2 in your init.lua for statusline. (or 3 for global line)
  • Have a nerd font installed
  • Have gitsigns.nvim installed (requirement for git branch and git_diff components)

Installation

Lazy

  {
    "abhilash26/zenline.nvim",
    opts = {}
  },

Pckr (Spiritual successor of packer)

  { "abhilash26/zenline.nvim",
    config = function()
          require("zenline").setup()
    end
  };

Minimum Configuration

require("zenline").setup()

Click to see default configuration

Default configuration is here options

Sections

section use
mode shows the mode
file_name shows filename with path to cwd
file_type shows filetype
diagnostics shows lsp diagnostics (number of errors, warnings, etc)
line_column shows line, column, percentage, etc
git_branch shows current branch name (uses gitsigns.nvim )
git_diff shows diff (added, changed and deleted) icons with count (uses gitsigns.nvim )