• Stars
    star
    185
  • Rank 201,544 (Top 5 %)
  • Language
    Lua
  • License
    MIT License
  • Created over 1 year ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🍫 Hyperextensible Statusline / Tabline / Winbar for Neovim 🚀

GitHub Workflow Status: CI Coverage License

🍫 nougat.nvim

Hyperextensible plugin for Neovim's 'statusline', 'tabline' and 'winbar'.

✨ Features

  • 🛠️ Hyperextensible.
  • 🚀 Fast, Performance focused, Submillisecond evaluation time.
  • 🖥️ Responsive Breakpoints, Smart Truncation.
  • 🎨 Color Palette, Automatic and Adaptive.
  • 📦 Modular Design, only use what you need.
  • 🔮 Dynamic statusline / tabline / winbar.
  • 📃 Filetype Specific statusline / winbar.
  • 💅 Fancy Separator.
  • 🖱️ Mouse-Click.
  • 💼 Caching out-of-the-box.
  • 📊 Built-in Profiler.
  • 🥜 Common Items included.

🕸️ Requirements

  • Neovim >= 0.7.0

📥 Installation

Install with your preferred plugin manager. For example:

With lazy.nvim

{
  "MunifTanjim/nougat.nvim",
},
With packer.nvim
use({
  "MunifTanjim/nougat.nvim",
})
With vim-plug
Plug 'MunifTanjim/nougat.nvim'

Usage

nougat.nvim is at your disposal to build exactly what you want.

local nougat = require("nougat")

set_statusline

Signature: (bar: NougatBar | nougat_bar_selector, opts?: { filetype?: string }) -> nil

bar can be a NougatBar instance:

local stl = Bar("statusline")

nougat.set_statusline(stl)

Or a nougat_bar_selector function (ctx: nougat_core_expression_context) -> NougatBar.

local stl = Bar("statusline")
local stl_inactive = Bar("statusline")

-- use separate statusline focused/unfocused window
nougat.set_statusline(function(ctx)
  return ctx.is_focused and stl or stl_inactive
end)

opts is a table with the shape { filetype?: string }.

If filetype is given, the bar will only be used for that filetype.

local stl_fugitive = Bar("statusline")
local stl_help = Bar("statusline")

-- set filetype specific statusline
for ft, stl_ft in pairs({
  fugitive = stl_fugitive,
  help = stl_help,
}) do
  nougat.set_statusline(stl_ft, { filetype = ft })
end

refresh_statusline

Signature: (force_all? boolean) -> nil

set_tabline

Signature: (bar: NougatBar | nougat_bar_selector) -> nil

bar can be a NougatBar instance or a nougat_bar_selector function.

refresh_tabline

Signature: () -> nil

set_winbar

Signature: (bar: NougatBar | nougat_bar_selector, opts?: { filetype: string }|{ global?: boolean }|{ winid: integer }) -> nil

bar can be a NougatBar instance or a nougat_bar_selector function.

opts is a table with one of the shapes { filetype: string } / { global?: boolean } / { winid: integer }.

If filetype is given, the bar will only be used for that filetype.

If global is true, the bar will be used for global 'winbar', otherwise the local 'winbar' is set whenever a new window is created.

If winid is present, the bar will be used for only that specific window.

refresh_winbar

Signature: (force_all?: boolean) -> nil

Examples

A handful of examples are available to get you started.

Bubbly

Source: bubbly.lua

Bubbly Statusline

Pointy

Source: pointy.lua

Pointy Statusline

Slanty

Source: slanty.lua

Slanty Statusline


🎨 Color Palette

Check Detailed Documentation for nougat.color

⚙️ NougatBar

The sweet NougatBar represents the statusline / tabline / winbar.

Check Detailed Documentation for nougat.bar

⚙️ NougatItem

Each NougatBar is made of a bunch of NougatItem.

Check Detailed Documentation for nougat.item

⚙️ Separator

Separator that goes between two NougatItems.

Check Detailed Documentation for nougat.separator

⚙️ Cache

Check Detailed Documentation for nougat.cache

⚙️ Store

Check Detailed Documentation for nougat.store

🥜 Nuts

Commonly used NougatItems for your NougatBar are available inside nougat.nut.* module.

📊 Profiler

The built-in profiler can be used with the :Nougat profile command.


📓 Links

📜 License

Licensed under the MIT License. Check the LICENSE file for details.

More Repositories

1

nui.nvim

UI Component Library for Neovim.
Lua
1,382
star
2

minimo

Minimo - Minimalist theme for Hugo
HTML
531
star
3

prettier.nvim

Prettier plugin for Neovim's built-in LSP client.
Lua
262
star
4

tmux-suspend

Plugin that lets you suspend local tmux session, so that you can work with nested remote tmux session painlessly.
Shell
114
star
5

tmux-mode-indicator

Plugin that displays prompt indicating currently active Tmux mode.
Shell
108
star
6

node-bitbucket

Bitbucket API client for Browser and Node.js
JavaScript
95
star
7

exrc.nvim

Secure Project Local Config for Neovim
Lua
56
star
8

tree-sitter-lua

Lua grammar for tree-sitter.
C
40
star
9

eslint.nvim

ESLint plugin for Neovim's built-in LSP client.
Lua
35
star
10

gatsby-theme-dox

Documentation made easy with Gatsby. 🎉
JavaScript
31
star
11

scripts.sh

Handy Shell Scripts
Shell
21
star
12

luver

Version manager for Lua, built with ❤️
Shell
21
star
13

zed

ZSH Plugin Manager
Shell
20
star
14

node-bkash

bKash API client for Browser & Node.js
JavaScript
17
star
15

nvim-treesitter-lua

Tree-sitter Lua parser integration for nvim-treesitter.
Scheme
12
star
16

oclif-plugin-completion

oclif plugin for generating shell completions
TypeScript
10
star
17

stapsher

API service for handling user-generated contents on static sites
JavaScript
9
star
18

gmail-oauth2-script

Script to get OAuth2 Access Token for Gmail.
Shell
6
star
19

express-zod-openapi

Express + Zod + OpenAPI
TypeScript
6
star
20

express-joi-openapi

Express + Joi + OpenAPI
TypeScript
6
star
21

regio

University Department Information Management Software
JavaScript
4
star
22

anontius

Personal Asking Portal (like ASK.fm)
JavaScript
4
star
23

draft-js-modules

Draft.js Modules
TypeScript
4
star
24

octoherd-script-set-pr-merge-config

An octoherd script to set pull request merge config
JavaScript
4
star
25

setup-neovim-action

🚀 Setup Neovim on Github Actions.
Shell
4
star
26

luver-action

🌛 Set up your GitHub Actions workflow with specific versions of Lua, LuaJIT, LuaRocks using Luver ❤️
Shell
3
star
27

llhttp.lua

Lua interface for https://github.com/nodejs/llhttp
C
3
star
28

is-mobile-phone-number-bd

Mobile phone number validator for Bangladesh
TypeScript
3
star
29

lua-evdev

LuaJIT FFI Bindings for libevdev.
Lua
3
star
30

rofunicode

Unicode Character Picker for Rofi
JavaScript
2
star
31

gist-embedder

Library for Embedding GitHub Gist
JavaScript
2
star
32

lua-udev

LuaJIT FFI Bindings for libudev.
Lua
2
star
33

kee

🖱 ⌨ Do amazing things with Keys...
Shell
1
star
34

middleware-pipeline

Simple Middleware Pipeline
TypeScript
1
star
35

js-set-time

Sets time to Date instance.
TypeScript
1
star
36

hashicorp-vault

HashiCorp Vault API client for Node.js
JavaScript
1
star
37

unoti

Unified Notification
TypeScript
1
star
38

npm-package-template

NPM Package Template
JavaScript
1
star
39

luarocks-publish-action

🌛 Publish to LuaRocks using GitHub Actions
JavaScript
1
star
40

Exercism

👨‍💻 Exercism Solutions
Rust
1
star
41

freeCodeCamp-FrontEnd-Projects

freeCodeCamp Front End Development Projects
JavaScript
1
star
42

x-git-hooks

Git Hooks Handler
Rust
1
star
43

bitbucket-api-routes

Machine-readable, Bitbucket API routes specifications
JavaScript
1
star
44

freeCodeCamp-React-Projects

(freeCodeCamp) React Projects
JavaScript
1
star