mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 08:35:48 +02:00
fix: evatheme load not proverly
This commit is contained in:
parent
b5f544bc27
commit
8a5c2dd398
1 changed files with 2 additions and 11 deletions
|
@ -5,19 +5,10 @@ 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
|
||||||
if substring(theme, "Dark") then
|
|
||||||
color = require("Eva-Theme.palette").dark_base
|
color = require("Eva-Theme.palette").dark_base
|
||||||
else
|
else
|
||||||
color = require("Eva-Theme.palette").light_base
|
|
||||||
end
|
|
||||||
else
|
|
||||||
if substring(theme, "Dark") then
|
|
||||||
color = require("Eva-Theme.palette").dark
|
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