mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-24 17:58:46 +02:00
add: update config colorscheme
This commit is contained in:
parent
4bbbf4bc75
commit
07c6b8ce49
19 changed files with 911 additions and 766 deletions
26
lua/plugins/themes/nord.lua
Normal file
26
lua/plugins/themes/nord.lua
Normal file
|
@ -0,0 +1,26 @@
|
|||
local color = vim.g.pcode_colorscheme or "gruvbox-baby"
|
||||
local transparent_mode = vim.g.pcode_transparent_mode or 0
|
||||
|
||||
if (color == "nord") and true or false then
|
||||
return {
|
||||
"shaunsingh/nord.nvim",
|
||||
priority = 1000,
|
||||
enabled = (color == "nord") and true or false,
|
||||
config = function()
|
||||
vim.g.nord_disable_background = (transparent_mode == 1) and true or false
|
||||
require("nord").set()
|
||||
local nord = require "nord.colors"
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
vim.api.nvim_set_hl(0, "StatusLine", { bg = "NONE", fg = nord.nord4_gui })
|
||||
vim.api.nvim_set_hl(0, "WinBarNC", { bg = nord.nord0_gui, fg = nord.nord4_gui })
|
||||
vim.api.nvim_set_hl(0, "WhichKeyFloat", { bg = nord.nord0_gui, fg = nord.nord4_gui })
|
||||
-- vim.api.nvim_set_hl(0, "StatusLine", { cterm = "bold", bold = true })
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
else
|
||||
return {}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue