Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/javiorfo/nvim-minimaline

Neovim minimal statusline written in Lua
https://github.com/javiorfo/nvim-minimaline

git lsp neovim neovim-plugin neovim-statusline statusline

Last synced: 3 months ago
JSON representation

Neovim minimal statusline written in Lua

Awesome Lists containing this project

README

        

# nvim-minimaline
### Neovim minimal statusline written in Lua
*nvim-minimaline is a Neovim statusline centered on icons and minimal configuration.*

## Caveats
- Integration with `git` and `LSP`
- This plugin has been developed on and for Linux following open source philosophies.

## Installation
`Packer`
```lua
use {
'javiorfo/nvim-minimaline',

-- Optional (only if you want file icons in the statusline)
requires = 'nvim-tree/nvim-web-devicons'
}
```
`Lazy`
```lua
{
"javiorfo/nvim-minimaline",
lazy = false,

-- Optional (only if you want file icons in the statusline)
dependencies = { "nvim-tree/nvim-web-devicons" },

opts = {
-- Default init. For further configuration read below
require'minimaline'.setup {}
-- Disable minimaline in the following filetypes (default is empty table)
disabled_filetypes = { "NvimTree*" },

-- Enable or disable colors on LSP diagnostics (default is false)
lsp_colors_enabled = true,

-- Set minimaline colors
-- Use 256 Xterm colors
-- foreground is "fg", background is "bg" and additionally "gui" could contain "bold", "italic" or combination "bold,italic"
-- Set only one option is possible (only fg or only bg, etc)
style = { fg = 15, bg = 0 }
}
}
```

### Configuration
- Set up in *init.lua* if Packer is used. If Lazy is used the above.
```lua
require'minimaline'.setup {
-- Disable minimaline in the following filetypes (default is empty table)
disabled_filetypes = { "NvimTree*" },

-- Enable or disable colors on LSP diagnostics (default is false)
lsp_colors_enabled = true,

-- Set minimaline colors
-- Use 256 Xterm colors
-- foreground is "fg", background is "bg" and additionally "gui" could contain "bold", "italic" or combination "bold,italic"
-- Set only one option is possible (only fg or only bg, etc)
style = { fg = 15, bg = 0 }
}
```

# Format
| MODE | GIT BRANCH | LSP DIAGNOSTICS | BUF_NAME BUF_NR -> STATE | LINE_NR/TOTAL_LINES COL_NR | ENCODING |
| ---- | ---- | ---- | ---- | ---- | ---- |

modes
buffers

## Screenshots
minimaline1

minimaline2

minimaline3

minimaline4

---

### Donate
- **Bitcoin** [(QR)](https://raw.githubusercontent.com/javiorfo/img/master/crypto/bitcoin.png) `1GqdJ63RDPE4eJKujHi166FAyigvHu5R7v`
- [Paypal](https://www.paypal.com/donate/?hosted_button_id=FA7SGLSCT2H8G)