Skip to content

Commit

Permalink
feat(plugins): add mini.diff support
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Dec 10, 2024
1 parent 32bdcfd commit fb5f12f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ term.foreground
| [lualine.nvim](https://github.com/nvim-lualine/lualine.nvim) | `lualine` |
| [mason.nvim](https://github.com/williamboman/mason.nvim) | `mason` |
| [mini.nvim](https://github.com/echasnovski/mini.nvim) | `mini` |
| [mini.diff](https://github.com/echasnovski/mini.diff) | `minidiff` |
| [mini.icons](https://github.com/echasnovski/mini.icons) | `miniicons` |
| [mini.starter](https://github.com/echasnovski/mini.starter) | `ministarter` |
| [neo-tree.nvim](https://github.com/nvim-neo-tree/neo-tree.nvim) | `neo-tree` |
Expand Down
1 change: 1 addition & 0 deletions lua/astrotheme/groups/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ return {
["lightspeed.nvim"] = "lightspeed",
["mason.nvim"] = "mason",
["mini.nvim"] = "mini",
["mini.diff"] = "minidiff",
["mini.starter"] = "ministarter",
["mini.icons"] = "miniicons",
["neo-tree.nvim"] = "neo-tree",
Expand Down
5 changes: 3 additions & 2 deletions lua/astrotheme/groups/plugins/mini.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
local function callback(...)
return vim.tbl_deep_extend(
"force",
require "astrotheme.groups.plugins.ministarter"(...),
require "astrotheme.groups.plugins.miniicons"(...)
require "astrotheme.groups.plugins.minidiff"(...),
require "astrotheme.groups.plugins.miniicons"(...),
require "astrotheme.groups.plugins.ministarter"(...)
)
end

Expand Down
10 changes: 10 additions & 0 deletions lua/astrotheme/groups/plugins/minidiff.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---@type AstroThemeCallback
local function callback(c)
return {
MiniDiffSignAdd = { fg = c.ui.green, bg = c.none },
MiniDiffSignChange = { fg = c.ui.orange, bg = c.none },
MiniDiffSignDelete = { fg = c.ui.red, bg = c.none },
}
end

return callback

0 comments on commit fb5f12f

Please sign in to comment.