mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 08:53:31 +02:00
add: update config colorscheme
This commit is contained in:
parent
4bbbf4bc75
commit
07c6b8ce49
19 changed files with 911 additions and 766 deletions
86
lua/plugins/themes/nightfox.lua
Normal file
86
lua/plugins/themes/nightfox.lua
Normal file
|
@ -0,0 +1,86 @@
|
|||
local nightfox = false
|
||||
local color = vim.g.pcode_colorscheme or "gruvbox-baby"
|
||||
local transparent_mode = vim.g.pcode_transparent_mode or 0
|
||||
switch(color, {
|
||||
["nightfox"] = function()
|
||||
nightfox = true
|
||||
end,
|
||||
["dayfox"] = function()
|
||||
nightfox = true
|
||||
end,
|
||||
["dawnfox"] = function()
|
||||
nightfox = true
|
||||
end,
|
||||
["duskfox"] = function()
|
||||
nightfox = true
|
||||
end,
|
||||
["nordfox"] = function()
|
||||
nightfox = true
|
||||
end,
|
||||
["terafox"] = function()
|
||||
nightfox = true
|
||||
end,
|
||||
["carbonfox"] = function()
|
||||
nightfox = true
|
||||
end,
|
||||
default = function() end,
|
||||
})
|
||||
|
||||
if nightfox then
|
||||
return {
|
||||
"EdenEast/nightfox.nvim",
|
||||
priority = 1000,
|
||||
enabled = nightfox,
|
||||
config = function()
|
||||
local palette = require("nightfox.palette").load "nightfox"
|
||||
-- local Color = require "nightfox.lib.color"
|
||||
-- local bg = Color.from_hex(palette.bg1)
|
||||
require("nightfox").setup {
|
||||
options = {
|
||||
terminal_colors = true,
|
||||
transparent = (transparent_mode == 1) and true or false,
|
||||
styles = { -- Style to be applied to different syntax groups
|
||||
comments = "italic", -- Value is any valid attr-list value `:help attr-list`
|
||||
conditionals = "italic",
|
||||
constants = "NONE",
|
||||
functions = "NONE",
|
||||
keywords = "italic",
|
||||
numbers = "NONE",
|
||||
operators = "NONE",
|
||||
strings = "NONE",
|
||||
types = "NONE",
|
||||
variables = "NONE",
|
||||
},
|
||||
},
|
||||
palettes = {
|
||||
all = {
|
||||
bg0 = palette.bg1,
|
||||
bg = palette.bg1,
|
||||
},
|
||||
},
|
||||
specs = {},
|
||||
groups = {
|
||||
all = {
|
||||
-- overide bufferline fill color
|
||||
BufferLineFill = { bg = palette.bg1 },
|
||||
BufferLineUnfocusedFill = { bg = palette.bg },
|
||||
-- overide nvimtree fill color with bg color
|
||||
NvimTreeNormal = { bg = palette.bg },
|
||||
NvimTreeWinSeparator = {
|
||||
fg = palette.bg0,
|
||||
},
|
||||
Underlined = { style = "NONE" }, -- overide statusline fill color with bg color
|
||||
StatusLine = { bg = "NONE" },
|
||||
StatusLineTerm = { bg = palette.bg },
|
||||
-- overide lualine fill color with bg color
|
||||
LualineNormal = { bg = palette.bg },
|
||||
Pmenu = { bg = "bg3" },
|
||||
PmenuSel = { bg = "bg3" },
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
else
|
||||
return {}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue