feat: added support for Neogit

This commit is contained in:
Folke Lemaitre
2021-04-21 09:06:52 +02:00
parent b78b7bb2d7
commit dd2a4ce207
2 changed files with 10 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ A dark Neovim theme written in Lua ported from the Visual Studio Code [TokyoNigh
+ [Dashboard](https://github.com/glepnir/dashboard-nvim)
+ [BufferLine](https://github.com/akinsho/nvim-bufferline.lua)
+ [Lualine](https://github.com/hoob3rt/lualine.nvim)
+ [Neogit](https://github.com/TimUntersberger/neogit)
## ⚡️ Requirements

View File

@@ -242,6 +242,15 @@ function M.setup(config)
diffLine = { fg = c.comment },
diffIndexLine = { fg = c.magenta },
-- Neogit
NeogitBranch = { fg = c.magenta },
NeogitRemote = { fg = c.purple },
NeogitHunkHeader = { bg = c.bg_highlight, fg = c.fg },
NeogitHunkHeaderHighlight = { bg = c.fg_gutter, fg = c.blue },
NeogitDiffContextHighlight = { bg = util.darken(c.fg_gutter, .5), fg = c.fg_dark },
NeogitDiffDeleteHighlight = { fg = c.git.delete, bg = c.diff.delete },
NeogitDiffAddHighlight = { fg = c.git.add, bg = c.diff.add },
-- GitGutter
GitGutterAdd = { fg = c.diff.add }, -- diff mode: Added line |diff.txt|
GitGutterChange = { fg = c.diff.change }, -- diff mode: Changed line |diff.txt|