Skip to content

Commit

Permalink
feat: add mini.diff and mini.icons plugins support (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiim authored Dec 9, 2024
1 parent fd55a42 commit 5833616
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ require("onedarkpro").setup({
lsp_saga = true,
lsp_semantic_tokens = true,
marks = true,
mini_diff = true,
mini_icons = true,
mini_indentscope = true,
neotest = true,
neo_tree = true,
Expand Down Expand Up @@ -727,6 +729,8 @@ The theme supports the following plugins:
- LSP Semantic tokens (`lsp_semantic_tokens`)
- [marks.nvim](https://github.com/chentau/marks.nvim) (`marks`)
- [mason.nvim](https://github.com/williamboman/mason.nvim) (`mason`)
- [mini.diff](https://github.com/echasnovski/mini.diff)(`mini_diff`)
- [mini.icons](https://github.com/echasnovski/mini.icons)('mini_icons')
- [mini.indentscope](https://github.com/echasnovski/mini.indentscope) (`mini_indentscope`)
- [Neotest](https://github.com/nvim-neotest/neotest) (`neotest`)
- [neo-tree](https://github.com/nvim-neo-tree/neo-tree.nvim) (`neo_tree`)
Expand Down
2 changes: 2 additions & 0 deletions lua/onedarkpro/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ local defaults = {
lsp_semantic_tokens = true,
marks = true,
mason = true,
mini_diff = true,
mini_icons = true,
mini_indentscope = true,
neotest = true,
neo_tree = true,
Expand Down
15 changes: 15 additions & 0 deletions lua/onedarkpro/highlights/plugins/mini_diff.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
local M = {}

function M.groups(theme)
return {
MiniDiffOverAdd = { link = "DiffAdd" },
MiniDiffOverChange = { link = "DiffChange" },
MiniDiffOverContext = { link = "DiffText" },
MiniDiffOverDelete = { link = "DiffDelete" },
MiniDiffSignAdd = { fg = theme.generated.git_add },
MiniDiffSignChange = { fg = theme.generated.git_change },
MiniDiffSignDelete = { fg = theme.generated.git_delete },
}
end

return M
17 changes: 17 additions & 0 deletions lua/onedarkpro/highlights/plugins/mini_icons.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
local M = {}

function M.groups(theme)
return {
MiniIconsGrey = { fg = theme.palette.gray },
MiniIconsPurple = { fg = theme.palette.purple },
MiniIconsBlue = { fg = theme.palette.blue },
MiniIconsAzure = { fg = theme.generated.virtual_text_information },
MiniIconsCyan = { fg = theme.palette.cyan },
MiniIconsGreen = { fg = theme.palette.green },
MiniIconsYellow = { fg = theme.palette.yellow },
MiniIconsOrange = { fg = theme.palette.orange },
MiniIconsRed = { fg = theme.palette.red },
}
end

return M

0 comments on commit 5833616

Please sign in to comment.