mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 00:25:47 +02:00
enc: add dark and light varian theme
This commit is contained in:
parent
3f5a3a6439
commit
5200fa75aa
1 changed files with 11 additions and 2 deletions
|
@ -5,10 +5,19 @@ return {
|
||||||
config = function()
|
config = function()
|
||||||
require("Eva-Theme").setup({})
|
require("Eva-Theme").setup({})
|
||||||
local color = {}
|
local color = {}
|
||||||
|
local theme = vim.g.colors_name or "Eva-Dark"
|
||||||
if pcode.localcode then
|
if pcode.localcode then
|
||||||
color = require("Eva-Theme.palette").dark_base
|
if substring(theme, "Dark") then
|
||||||
|
color = require("Eva-Theme.palette").dark_base
|
||||||
|
else
|
||||||
|
color = require("Eva-Theme.palette").light_base
|
||||||
|
end
|
||||||
else
|
else
|
||||||
color = require("Eva-Theme.palette").dark
|
if substring(theme, "Dark") then
|
||||||
|
color = require("Eva-Theme.palette").dark
|
||||||
|
else
|
||||||
|
color = require("Eva-Theme.palette").light
|
||||||
|
end
|
||||||
end
|
end
|
||||||
vim.api.nvim_create_autocmd("ColorScheme", {
|
vim.api.nvim_create_autocmd("ColorScheme", {
|
||||||
pattern = "*",
|
pattern = "*",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue