Skip to content

Commit

Permalink
feat: add all of sainnhe's themes and customize them
Browse files Browse the repository at this point in the history
  • Loading branch information
pkazmier committed Jul 9, 2024
1 parent f711412 commit 558c7c5
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 2 deletions.
3 changes: 3 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ later(load("stevearc/conform.nvim", { init = "plugins.conform" }))
later(load("mfussenegger/nvim-lint", { init = "plugins.nvim-lint"}))
later(load("OXY2DEV/markview.nvim", { init = "plugins.markview"}))
later(load("sainnhe/gruvbox-material", { init = "plugins.gruvbox-material" }))
later(load("sainnhe/everforest", { init = "plugins.everforest" }))
later(load("sainnhe/edge", { init = "plugins.edge" }))
later(load("sainnhe/sonokai", { init = "plugins.sonokai" }))

later(load("nvim-treesitter/nvim-treesitter", {
init = "plugins.treesitter",
Expand Down
45 changes: 45 additions & 0 deletions lua/plugins/edge.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
vim.g.edge_float_style = "dim"
vim.g.edge_background = "hard"

vim.api.nvim_create_autocmd("ColorScheme", {
group = vim.api.nvim_create_augroup("custom_highlights_edge", {}),
pattern = "edge",
callback = function()
-- stylua: ignore start
local config = vim.fn['edge#get_configuration']()
local palette = vim.fn['edge#get_palette'](config.style, config.dim_foreground, config.colors_override)
local set_hl = vim.fn['edge#highlight']

set_hl("KazCodeBlock", palette.none, config.float_style == "dim" and palette.bg_dim or palette.bg3)
set_hl("MiniPickPrompt", palette.blue, config.float_style == "dim" and palette.bg_dim or palette.bg3)
set_hl("MiniPickMatchRanges", palette.blue, palette.none, "bold")
set_hl("MiniFilesFile", palette.fg, palette.none)
set_hl("MiniTablineFill", palette.none, palette.bg1)
set_hl("MiniTablineCurrent", palette.blue, palette.bg0, "bold")
set_hl("MiniTablineHidden", palette.grey, palette.bg3)
set_hl("MiniTablineModifiedCurrent", palette.bg1, palette.blue, "bold")
set_hl("MiniTablineModifiedHidden", palette.bg1, palette.grey)
set_hl("MiniTablineModifiedVisible", palette.bg1, palette.grey, "bold")
set_hl("MiniTablineTabpagesection", palette.bg0, palette.green, "bold")
set_hl("MiniTablineVisible", palette.grey, palette.bg3, "bold")
set_hl("MiniHipatternsFixmeBody", palette.red, palette.bg0)
set_hl("MiniHipatternsFixmeColon", palette.red, palette.red, "bold")
set_hl("MiniHipatternsHackBody", palette.yellow, palette.bg0)
set_hl("MiniHipatternsHackColon", palette.yellow, palette.yellow, "bold")
set_hl("MiniHipatternsNoteBody", palette.blue, palette.bg0)
set_hl("MiniHipatternsNoteColon", palette.blue, palette.blue, "bold")
set_hl("MiniHipatternsTodoBody", palette.green, palette.bg0)
set_hl("MiniHipatternsTodoColon", palette.green, palette.green, "bold")
set_hl("MiniStatuslineDirectory", palette.grey, palette.bg1)
set_hl("MiniStatuslineFilename", palette.grey, palette.bg1, "bold")
set_hl("MiniStatuslineFilenameModified", palette.blue, palette.bg1, "bold")
set_hl("MiniStatuslineInactive", palette.grey_dim, palette.bg1)
set_hl("MiniStatuslineDevInfo", palette.grey, palette.bg3)
set_hl("MiniStatuslineFileInfo", palette.grey, palette.bg3)
set_hl("MiniJump2dDim", palette.grey_dim, palette.none)
set_hl("MiniJump2dSpot", palette.blue, palette.bg_dim, "bold")
set_hl("MiniJump2dSpotUnique", palette.blue, palette.bg_dim, "bold")
set_hl("MiniJump2dSpotAhead", palette.purple, palette.bg_dim)
--stylua: ignore end
end,
})
45 changes: 45 additions & 0 deletions lua/plugins/everforest.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
vim.g.everforest_float_style = "dim"
vim.g.everforest_background = "hard"

vim.api.nvim_create_autocmd("ColorScheme", {
group = vim.api.nvim_create_augroup("custom_highlights_everforest", {}),
pattern = "everforest",
callback = function()
-- stylua: ignore start
local config = vim.fn['everforest#get_configuration']()
local palette = vim.fn['everforest#get_palette'](config.background, config.colors_override)
local set_hl = vim.fn['everforest#highlight']

set_hl("KazCodeBlock", palette.none, config.float_style == "dim" and palette.bg_dim or palette.bg3)
set_hl("MiniPickPrompt", palette.blue, config.float_style == "dim" and palette.bg_dim or palette.bg3)
set_hl("MiniPickMatchRanges", palette.green, palette.none, "bold")
set_hl("MiniFilesFile", palette.fg, palette.none)
set_hl("MiniTablineFill", palette.none, palette.bg2)
set_hl("MiniTablineCurrent", palette.blue, palette.bg0, "bold")
set_hl("MiniTablineHidden", palette.grey2, palette.bg3)
set_hl("MiniTablineModifiedCurrent", palette.bg1, palette.blue, "bold")
set_hl("MiniTablineModifiedHidden", palette.bg1, palette.grey2)
set_hl("MiniTablineModifiedVisible", palette.bg1, palette.grey2, "bold")
set_hl("MiniTablineTabpagesection", palette.bg0, palette.aqua, "bold")
set_hl("MiniTablineVisible", palette.grey2, palette.bg3, "bold")
set_hl("MiniHipatternsFixmeBody", palette.red, palette.bg0)
set_hl("MiniHipatternsFixmeColon", palette.red, palette.red, "bold")
set_hl("MiniHipatternsHackBody", palette.yellow, palette.bg0)
set_hl("MiniHipatternsHackColon", palette.yellow, palette.yellow, "bold")
set_hl("MiniHipatternsNoteBody", palette.blue, palette.bg0)
set_hl("MiniHipatternsNoteColon", palette.blue, palette.blue, "bold")
set_hl("MiniHipatternsTodoBody", palette.green, palette.bg0)
set_hl("MiniHipatternsTodoColon", palette.green, palette.green, "bold")
set_hl("MiniStatuslineDirectory", palette.grey0, palette.bg1)
set_hl("MiniStatuslineFilename", palette.grey2, palette.bg1, "bold")
set_hl("MiniStatuslineFilenameModified", palette.blue, palette.bg1, "bold")
set_hl("MiniStatuslineInactive", palette.grey0, palette.bg1)
set_hl("MiniStatuslineDevinfo", palette.grey2, palette.bg3)
set_hl("MiniStatuslineFileinfo", palette.grey2, palette.bg3)
set_hl("MiniJump2dDim", palette.bg5, palette.none)
set_hl("MiniJump2dSpot", palette.orange, palette.bg_dim, "bold")
set_hl("MiniJump2dSpotUnique", palette.orange, palette.bg_dim, "bold")
set_hl("MiniJump2dSpotAhead", palette.yellow, palette.bg_dim)
--stylua: ignore end
end,
})
9 changes: 7 additions & 2 deletions lua/plugins/gruvbox-material.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ vim.api.nvim_create_autocmd("ColorScheme", {

set_hl("KazCodeBlock", palette.none, config.float_style == "dim" and palette.bg_dim or palette.bg3)
set_hl("MiniPickPrompt", palette.blue, config.float_style == "dim" and palette.bg_dim or palette.bg3)
set_hl("MiniPickMatchRanges", palette.green, palette.none, "bold")
set_hl("MiniFilesFile", palette.fg1, palette.none)
set_hl("MiniTablineCurrent", palette.blue, palette.bg0, "bold")
set_hl("MiniTablineHidden", palette.grey2, palette.bg3)
set_hl("MiniTablineHidden", palette.grey2, palette.bg_statusline2)
set_hl("MiniTablineModifiedCurrent", palette.bg2, palette.blue, "bold")
set_hl("MiniTablineModifiedHidden", palette.bg2, palette.grey2)
set_hl("MiniTablineModifiedVisible", palette.bg2, palette.grey2, "bold")
set_hl("MiniTablineTabpagesection", palette.bg0, palette.aqua, "bold")
set_hl("MiniTablineVisible", palette.grey2, palette.bg3, "bold")
set_hl("MiniTablineVisible", palette.grey2, palette.bg_statusline2, "bold")
set_hl("MiniHipatternsFixmeBody", palette.red, palette.bg0)
set_hl("MiniHipatternsFixmeColon", palette.red, palette.red, "bold")
set_hl("MiniHipatternsHackBody", palette.yellow, palette.bg0)
Expand All @@ -31,6 +32,10 @@ vim.api.nvim_create_autocmd("ColorScheme", {
set_hl("MiniStatuslineFilename", palette.grey2, palette.bg_statusline1, "bold")
set_hl("MiniStatuslineFilenameModified", palette.blue, palette.bg_statusline1, "bold")
set_hl("MiniStatuslineInactive", palette.grey0, palette.bg_statusline1)
set_hl("MiniJump2dDim", palette.bg5, palette.none)
set_hl("MiniJump2dSpot", palette.orange, palette.bg_dim, "bold")
set_hl("MiniJump2dSpotUnique", palette.orange, palette.bg_dim, "bold")
set_hl("MiniJump2dSpotAhead", palette.yellow, palette.bg_dim)
--stylua: ignore end
end,
})
43 changes: 43 additions & 0 deletions lua/plugins/sonokai.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
vim.g.sonokai_float_style = "dim"

vim.api.nvim_create_autocmd("ColorScheme", {
group = vim.api.nvim_create_augroup("custom_highlights_sonokai", {}),
pattern = "sonokai",
callback = function()
-- stylua: ignore start
local config = vim.fn['sonokai#get_configuration']()
local palette = vim.fn['sonokai#get_palette'](config.style, config.colors_override)
local set_hl = vim.fn['sonokai#highlight']

set_hl("KazCodeBlock", palette.none, config.float_style == "dim" and palette.bg_dim or palette.bg3)
set_hl("MiniPickPrompt", palette.blue, config.float_style == "dim" and palette.bg_dim or palette.bg3)
set_hl("MiniPickMatchRanges", palette.green, palette.none, "bold")
set_hl("MiniFilesFile", palette.fg, palette.none)
set_hl("MiniTablineCurrent", palette.blue, palette.bg0, "bold")
set_hl("MiniTablineHidden", palette.grey, palette.bg3)
set_hl("MiniTablineModifiedCurrent", palette.bg1, palette.blue, "bold")
set_hl("MiniTablineModifiedHidden", palette.bg1, palette.grey)
set_hl("MiniTablineModifiedVisible", palette.bg1, palette.grey, "bold")
set_hl("MiniTablineTabpagesection", palette.bg0, palette.green, "bold")
set_hl("MiniTablineVisible", palette.grey, palette.bg3, "bold")
set_hl("MiniHipatternsFixmeBody", palette.red, palette.bg0)
set_hl("MiniHipatternsFixmeColon", palette.red, palette.red, "bold")
set_hl("MiniHipatternsHackBody", palette.yellow, palette.bg0)
set_hl("MiniHipatternsHackColon", palette.yellow, palette.yellow, "bold")
set_hl("MiniHipatternsNoteBody", palette.blue, palette.bg0)
set_hl("MiniHipatternsNoteColon", palette.blue, palette.blue, "bold")
set_hl("MiniHipatternsTodoBody", palette.green, palette.bg0)
set_hl("MiniHipatternsTodoColon", palette.green, palette.green, "bold")
set_hl("MiniStatuslineDirectory", palette.grey, palette.bg1)
set_hl("MiniStatuslineFilename", palette.grey, palette.bg1, "bold")
set_hl("MiniStatuslineFilenameModified", palette.blue, palette.bg1, "bold")
set_hl("MiniStatuslineInactive", palette.grey_dim, palette.bg1)
set_hl("MiniStatuslineDevinfo", palette.grey, palette.bg3)
set_hl("MiniStatuslineFileinfo", palette.grey, palette.bg3)
set_hl("MiniJump2dDim", palette.grey_dim, palette.none)
set_hl("MiniJump2dSpot", palette.green, palette.bg_dim, "bold")
set_hl("MiniJump2dSpotUnique", palette.green, palette.bg_dim, "bold")
set_hl("MiniJump2dSpotAhead", palette.yellow, palette.bg_dim)
--stylua: ignore end
end,
})

0 comments on commit 558c7c5

Please sign in to comment.