Skip to content

Commit

Permalink
feat(module): add signify support (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbleclank committed Dec 27, 2022
1 parent ae5df67 commit 07174bf
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/nightfox.txt
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ Current list of modules are:
- notify
- nvimtree
- pounce
- signify
- sneak
- symbol_outline
- telescope
Expand Down
1 change: 1 addition & 0 deletions lua/nightfox/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ M.module_names = {
"notify",
"nvimtree",
"pounce",
"signify",
"sneak",
"symbol_outline",
"telescope",
Expand Down
16 changes: 16 additions & 0 deletions lua/nightfox/group/modules/signify.lua
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ Current list of modules are:
- notify
- nvimtree
- pounce
- signify
- sneak
- symbol_outline
- telescope
Expand Down

0 comments on commit 07174bf

Please sign in to comment.