A simple statusline for neovim written in lua.
- Requires neovim version >= 0.10
vim.opt.laststatus=2
in your init.lua for statusline. (or3
for global line)- Have a nerd font installed
- Have gitsigns.nvim installed (requirement for git branch and git_diff components)
{
"abhilash26/zenline.nvim",
opts = {}
},
{ "abhilash26/zenline.nvim",
config = function()
require("zenline").setup()
end
};
require("zenline").setup()
Default configuration is here options
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 ) |