From 4d233549aed6ce723e26dc9f513960ba890fa21d Mon Sep 17 00:00:00 2001 From: A-Lamia Date: Sun, 26 Nov 2023 00:50:54 +1100 Subject: [PATCH] feat(plugins): add neogit support --- README.md | 1 + lua/astrotheme/groups/plugins/init.lua | 1 + lua/astrotheme/groups/plugins/neogit.lua | 33 ++++++++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 lua/astrotheme/groups/plugins/neogit.lua diff --git a/README.md b/README.md index b49d01d..bb8bf9e 100644 --- a/README.md +++ b/README.md @@ -244,6 +244,7 @@ term.foreground | [lightspeed.nvim](https://github.com/ggandor/lightspeed.nvim) | `lightspeed` | | [lualine.nvim](https://github.com/nvim-lualine/lualine.nvim) | `lualine` | | [neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim) | `neo-tree` | +| [neogit](https://github.com/NeogitOrg/neogit) | `neogit` | | [noice.nvim](https://github.com/folke/noice.nvim) | `noice` | | [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) | `nvim-cmp` | | [nvim-dap-ui](https://github.com/rcarriga/nvim-dap-ui) | `nvim-dap-ui` | diff --git a/lua/astrotheme/groups/plugins/init.lua b/lua/astrotheme/groups/plugins/init.lua index f07dd4a..13296e5 100644 --- a/lua/astrotheme/groups/plugins/init.lua +++ b/lua/astrotheme/groups/plugins/init.lua @@ -7,6 +7,7 @@ return { ["gitsigns.nvim"] = "gitsigns", ["hop.nvim"] = "hop", ["indent-blankline.nvim"] = "indent-blankline", + ["neogit"] = "neogit", ["lazy.nvim"] = "lazy", ["lightspeed.nvim"] = "lightspeed", ["neo-tree.nvim"] = "neo-tree", diff --git a/lua/astrotheme/groups/plugins/neogit.lua b/lua/astrotheme/groups/plugins/neogit.lua new file mode 100644 index 0000000..f3f9248 --- /dev/null +++ b/lua/astrotheme/groups/plugins/neogit.lua @@ -0,0 +1,33 @@ +local function callback() + return { + NeogitDiffDelete = { + bg = C.ui.base, + fg = C.syntax.red, + }, + NeogitDiffDeleteHighlight = { + bg = C.ui.base, + fg = C.syntax.red, + }, + NeogitDiffAdd = { + bg = C.ui.base, + fg = C.syntax.green, + }, + NeogitDiffAddHighlight = { + bg = C.ui.base, + fg = C.syntax.green, + }, + NeogitDiffContextHighlight = { + bg = C.ui.inactive_base, + }, + NeogitDiffContext = { + bg = C.ui.inactive_base, + fg = C.ui.text_inactive, + }, + NeogitHunkHeader = { + bg = C.ui.text_inactive, + fg = C.ui.text_active, + }, + } +end + +return callback