From 07174bfe0ad15a4c25ef908872904edb09069e94 Mon Sep 17 00:00:00 2001 From: Simon Truscott <85295933+bobbleclank@users.noreply.github.com> Date: Wed, 28 Dec 2022 01:46:55 +1100 Subject: [PATCH] feat(module): add signify support (#279) --- doc/nightfox.txt | 1 + lua/nightfox/config.lua | 1 + lua/nightfox/group/modules/signify.lua | 16 ++++++++++++++++ readme.md | 1 + usage.md | 1 + 5 files changed, 20 insertions(+) create mode 100644 lua/nightfox/group/modules/signify.lua diff --git a/doc/nightfox.txt b/doc/nightfox.txt index 35f950b1..99ff345f 100644 --- a/doc/nightfox.txt +++ b/doc/nightfox.txt @@ -501,6 +501,7 @@ Current list of modules are: - notify - nvimtree - pounce +- signify - sneak - symbol_outline - telescope diff --git a/lua/nightfox/config.lua b/lua/nightfox/config.lua index fdf2dfdf..a566b933 100644 --- a/lua/nightfox/config.lua +++ b/lua/nightfox/config.lua @@ -74,6 +74,7 @@ M.module_names = { "notify", "nvimtree", "pounce", + "signify", "sneak", "symbol_outline", "telescope", diff --git a/lua/nightfox/group/modules/signify.lua b/lua/nightfox/group/modules/signify.lua new file mode 100644 index 00000000..dcf33de7 --- /dev/null +++ b/lua/nightfox/group/modules/signify.lua @@ -0,0 +1,16 @@ +-- https://github.com/mhinz/vim-signify + +local M = {} + +function M.get(spec, config, opts) + local git = spec.git + + -- stylua: ignore + return { + SignifySignAdd = { fg = git.add }, -- diff mode: Added line |diff.txt| + SignifySignChange = { fg = git.changed }, -- diff mode: Changed line |diff.txt| + SignifySignDelete = { fg = git.removed }, -- diff mode: Deleted line |diff.txt| + } +end + +return M diff --git a/readme.md b/readme.md index 0dcae800..764e522e 100644 --- a/readme.md +++ b/readme.md @@ -451,6 +451,7 @@ There are a few things to note: - [nvim-notify](https://github.com/rcarriga/nvim-notify) - [nvim-tree.lua](https://github.com/kyazdani42/nvim-tree.lua) - [pounce.nvim](https://github.com/rlane/pounce.nvim) +- [vim-signify](https://github.com/mhinz/vim-signify) - [vim-sneak](https://github.com/justinmk/vim-sneak) - [symbols-outline.nvim](https://github.com/simrat39/symbols-outline.nvim) - [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) diff --git a/usage.md b/usage.md index 4911ab9a..0a4c70ed 100644 --- a/usage.md +++ b/usage.md @@ -398,6 +398,7 @@ Current list of modules are: - notify - nvimtree - pounce +- signify - sneak - symbol_outline - telescope