From 6a6076bd678f825ffbe16ec97807793c3167f1a7 Mon Sep 17 00:00:00 2001 From: EdenEast Date: Sun, 15 Oct 2023 22:34:18 -0400 Subject: [PATCH] fix(groups): differentiate between active button with lazy.nvim (#383) Lazy.nvim used CursorLine and VisualSelect to differentiate between active and non-active buttons at the top of lazy's ui. These are the same styles in nightfox. This was overridden to help make active button visually unique. --- doc/nightfox.txt | 1 + flake.lock | 30 ++++++----------------------- lua/nightfox/config.lua | 1 + lua/nightfox/group/modules/lazy.lua | 11 +++++++++++ readme.md | 1 + usage.md | 1 + 6 files changed, 21 insertions(+), 24 deletions(-) create mode 100644 lua/nightfox/group/modules/lazy.lua diff --git a/doc/nightfox.txt b/doc/nightfox.txt index 3c2574ab..26f37834 100644 --- a/doc/nightfox.txt +++ b/doc/nightfox.txt @@ -513,6 +513,7 @@ Current list of modules are: - hop - illuminate - indent_blanklines +- lazy.nvim - leap - lightspeed - lsp_saga diff --git a/flake.lock b/flake.lock index 289f54aa..427a8052 100644 --- a/flake.lock +++ b/flake.lock @@ -1,15 +1,12 @@ { "nodes": { "flake-utils": { - "inputs": { - "systems": "systems" - }, "locked": { - "lastModified": 1694529238, - "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=", + "lastModified": 1667395993, + "narHash": "sha256-nuEHfE/LcWyuSWnS8t12N1wc105Qtau+/OdUAjtQ0rA=", "owner": "numtide", "repo": "flake-utils", - "rev": "ff7b65b44d01cf9ba6a71320833626af21126384", + "rev": "5aed5285a952e0b949eb3ba02c12fa4fcfef535f", "type": "github" }, "original": { @@ -20,11 +17,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1694959747, - "narHash": "sha256-CXQ2MuledDVlVM5dLC4pB41cFlBWxRw4tCBsFrq3cRk=", + "lastModified": 1668326430, + "narHash": "sha256-fJEsHe+lzFf3qcQVTTdK9jqRtUUVXH71tdfgjcKJNpA=", "owner": "nixos", "repo": "nixpkgs", - "rev": "970a59bd19eff3752ce552935687100c46e820a5", + "rev": "fc07622617a373a742ed96d4dd536849d4bc1ec6", "type": "github" }, "original": { @@ -39,21 +36,6 @@ "flake-utils": "flake-utils", "nixpkgs": "nixpkgs" } - }, - "systems": { - "locked": { - "lastModified": 1681028828, - "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", - "owner": "nix-systems", - "repo": "default", - "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default", - "type": "github" - } } }, "root": "root", diff --git a/lua/nightfox/config.lua b/lua/nightfox/config.lua index be99cdca..c4df57b3 100644 --- a/lua/nightfox/config.lua +++ b/lua/nightfox/config.lua @@ -77,6 +77,7 @@ M.module_names = { "hop", "illuminate", "indent_blankline", + "lazy", "leap", "lightspeed", "lsp_saga", diff --git a/lua/nightfox/group/modules/lazy.lua b/lua/nightfox/group/modules/lazy.lua new file mode 100644 index 00000000..f2d5c5ff --- /dev/null +++ b/lua/nightfox/group/modules/lazy.lua @@ -0,0 +1,11 @@ +local M = {} + +function M.get(spec, config, opts) + return { + LazyButtonActive = { link = "TabLineSel" }, + LazyDimmed = { link = "LineNr" }, + LazyProp = { link = "LineNr" }, + } +end + +return M diff --git a/readme.md b/readme.md index 0b9a4526..f80b1467 100644 --- a/readme.md +++ b/readme.md @@ -529,6 +529,7 @@ There are a few things to note: - [lspsaga.nvim](https://github.com/glepnir/lspsaga.nvim) - [lsp-trouble.nvim](https://github.com/simrat39/lsp-trouble.nvim) - [indent-blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim) +- [lazy.nvim](https://github.com/folke/lazy.nvim) - [mini.nvim](https://github.com/echasnovski/mini.nvim) - [modes.nvim](https://github.com/mvllow/modes.nvim) - [nvim-navic](https://github.com/SmiteshP/nvim-navic) diff --git a/usage.md b/usage.md index cfea6c18..70b78346 100644 --- a/usage.md +++ b/usage.md @@ -405,6 +405,7 @@ Current list of modules are: - hop - illuminate - indent_blanklines +- lazy.nvim - leap - lightspeed - lsp_saga