Skip to content

Commit

Permalink
feat: neogit
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmx03 committed Nov 26, 2023
1 parent 81d23d4 commit 8318f74
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ require('solarized').setup({
lsp = true,
lspsaga = true,
navic = true,
neogit = true,
neotree = true,
notify = true,
semantic = true,
Expand Down
3 changes: 2 additions & 1 deletion doc/solarized.nvim.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*solarized.nvim.txt* For NVIM v0.9.1 Last change: 2023 October 23
*solarized.nvim.txt* For NVIM v0.9.1 Last change: 2023 November 26

==============================================================================
Table of Contents *solarized.nvim-table-of-contents*
Expand Down Expand Up @@ -128,6 +128,7 @@ DEFAULT CONFIG *solarized.nvim-default-config*
lsp = true,
lspsaga = true,
navic = true,
neogit = true,
neotree = true,
notify = true,
semantic = true,
Expand Down
1 change: 1 addition & 0 deletions lua/solarized/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ local function default_config()
lsp = true,
lspsaga = true,
navic = true,
neogit = true,
neotree = true,
notify = true,
semantic = true,
Expand Down
17 changes: 17 additions & 0 deletions lua/solarized/themes/default/neogit.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
return function(c)
local blend = require('solarized.utils.colors').blend
local utils = require('solarized.utils')
local set_hl = utils.set_hl

set_hl('NeogitCursorLine', { link = 'CursorLine' })
set_hl('NeogitBranch', { fg = c.magenta })
set_hl('NeogitRemote', { fg = c.violet })
set_hl('NeogitHunkHeader', { fg = c.base0, bg = c.base02 })
set_hl('NeogitHunkHeaderHighlight', { link = 'Title' })
set_hl('NeogitDiffContextHighlight', { fg = c.base00, bg = c.base03 })
set_hl('NeogitDiffContext', { fg = c.base00, bg = c.base03 })
set_hl('NeogitDiffDeleteHighlight', { fg = c.red, bg = blend(c.red, c.base03, 0.05) })
set_hl('NeogitDiffDelete', { fg = c.red })
set_hl('NeogitDiffAddHighlight', { fg = c.green, bg = blend(c.green, c.base03, 0.05) })
set_hl('NeogitDiffAdd', { fg = c.green })
end
17 changes: 17 additions & 0 deletions lua/solarized/themes/neo/neogit.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
return function(c)
local blend = require('solarized.utils.colors').blend
local utils = require('solarized.utils')
local set_hl = utils.set_hl

set_hl('NeogitCursorLine', { link = 'CursorLine' })
set_hl('NeogitBranch', { fg = c.magenta })
set_hl('NeogitRemote', { fg = c.violet })
set_hl('NeogitHunkHeader', { fg = c.base0, bg = c.base02 })
set_hl('NeogitHunkHeaderHighlight', { link = 'Title' })
set_hl('NeogitDiffContextHighlight', { fg = c.base00, bg = c.base03 })
set_hl('NeogitDiffContext', { fg = c.base00, bg = c.base03 })
set_hl('NeogitDiffDeleteHighlight', { fg = c.red, bg = blend(c.red, c.base03, 0.05) })
set_hl('NeogitDiffDelete', { fg = c.red })
set_hl('NeogitDiffAddHighlight', { fg = c.green, bg = blend(c.green, c.base03, 0.05) })
set_hl('NeogitDiffAdd', { fg = c.green })
end

0 comments on commit 8318f74

Please sign in to comment.