Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ require("osmium").setup({
gitsigns = false,
telescope = false,
indent_blankline = false,
fff = false
},
transparent_bg = false, -- whether to use a transparent background
show_end_of_buffer = false, -- whether to show the end of buffer
Expand All @@ -50,6 +51,7 @@ require("osmium").setup({
- [gitsigns](https://github.com/lewis6991/gitsigns.nvim)
- [telescope](https://github.com/nvim-telescope/telescope.nvim)
- [indent_blankline](https://github.com/lukas-reineke/indent-blankline.nvim)
- [fff](https://github.com/dmtrKovalenko/fff.nvim)

## Contributing

Expand Down
21 changes: 21 additions & 0 deletions lua/osmium/groups/integrations/fff.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
local combine = require("osmium.groups.utils").combine

---@param highlights HighlightGroups
---@param colors Palette
return function(highlights, colors)
return combine(highlights, {
FFFGitUntracked = { bg = colors.greenBg, fg = colors.greenFg },
FFFGitIgnored = { bg = colors.surface3, fg = colors.foreground2 },
FFFGitModified = { bg = colors.yellowBg, fg = colors.yellowFg },
FFFGitDeleted = { bg = colors.redBg, fg = colors.redFg },
FFFGitRenamed = { bg = colors.purpleBg, fg = colors.purpleFg },
FFFGitStaged = { bg = colors.greenBg, fg = colors.greenFg },

FFFGitSignUntracked = { bg = colors.greenBg, fg = colors.greenFg },
FFFGitSignIgnored = { bg = colors.surface3, fg = colors.foreground2 },
FFFGitSignModified = { bg = colors.yellowBg, fg = colors.yellowFg },
FFFGitSignDeleted = { bg = colors.redBg, fg = colors.redFg },
FFFGitSignRenamed = { bg = colors.purpleBg, fg = colors.purpleFg },
FFFGitSignStaged = { bg = colors.greenBg, fg = colors.greenFg },
})
end
3 changes: 3 additions & 0 deletions lua/osmium/groups/integrations/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ local function highlight_integrations(highlights, configs)
if configs.integrations.indent_blankline then
combined = require("osmium.groups.integrations.indent_blankline")(combined, configs.colors)
end
if configs.integrations.fff then
combined = require("osmium.groups.integrations.fff")(combined, configs.colors)
end

return combined
end
Expand Down
1 change: 1 addition & 0 deletions lua/osmium/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
---@field gitsigns? boolean
---@field telescope? boolean
---@field indent_blankline? boolean
---@field fff? boolean

---@class OsmiumConfig
---@field italic_comment? boolean
Expand Down