https://github.com/wsdjeg/statusline.nvim
module statusline plugin for neovim
https://github.com/wsdjeg/statusline.nvim
neovim-plugin
Last synced: 24 days ago
JSON representation
module statusline plugin for neovim
- Host: GitHub
- URL: https://github.com/wsdjeg/statusline.nvim
- Owner: wsdjeg
- License: gpl-3.0
- Created: 2025-02-19T14:07:06.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2025-04-14T02:42:46.000Z (about 1 month ago)
- Last Synced: 2025-04-14T03:35:18.195Z (about 1 month ago)
- Topics: neovim-plugin
- Language: Lua
- Homepage:
- Size: 22.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# statusline.nvim
`statusline.nvim` is a simple statusline plugin for neovim.
* [Installation](#installation)
* [Setup](#setup)
* [Usage](#usage)
* [Self-Promotion](#self-promotion)## Installation
using [nvim-plug](https://github.com/wsdjeg/nvim-plug)
```lua
require('plug').add({
{
'wsdjeg/statusline.nvim',
},
})
```## Setup
```lua
require('statusline').setup({
left_sections = { 'winnr', 'filename' },
right_sections = { 'fileformat', 'cursorpos' },
enable_mode = true,
index_type = 3,
separator = 'arrow',
iseparator = 'arrow',
})
```## Usage
1. display git branch on statusline
```lua
require('plug').add({
{
'wsdjeg/statusline.nvim',
events = { 'VimEnter' },
config = function()
require('statusline').register_sections('vcs', function()
return '%{ v:lua.require("git.command.branch").current() }'
end)
require('statusline').setup({
left_sections = { 'winnr', 'filename', 'vcs' },
})
end,
},
})
```## Self-Promotion
Like this plugin? Star the repository on
GitHub.Love this plugin? Follow [me](https://wsdjeg.net/) on
[GitHub](https://github.com/wsdjeg) and
[Twitter](http://twitter.com/wsdtty).