mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 00:49:01 +02:00
add: update config colorscheme
This commit is contained in:
parent
4bbbf4bc75
commit
07c6b8ce49
19 changed files with 911 additions and 766 deletions
27
lua/plugins/themes/jetbrains.lua
Normal file
27
lua/plugins/themes/jetbrains.lua
Normal file
|
@ -0,0 +1,27 @@
|
|||
local color = vim.g.pcode_colorscheme or "gruvbox-baby"
|
||||
|
||||
if (color == "darcula-dark") and true or false then
|
||||
return {
|
||||
"pojokcodeid/darcula-dark.nvim",
|
||||
enabled = (color == "darcula-dark") and true or false,
|
||||
priority = 1000,
|
||||
lazy = false,
|
||||
config = function()
|
||||
require("darcula").setup {
|
||||
colors = {
|
||||
lavender = "#9876AA",
|
||||
},
|
||||
}
|
||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
local colors = require("darcula").colors()
|
||||
local hi = vim.api.nvim_set_hl
|
||||
hi(0, "@property.json", { fg = colors.lavender })
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
else
|
||||
return {}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue