summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorChristianChiarulli <[email protected]>2022-09-21 11:21:01 -0400
committerChristianChiarulli <[email protected]>2022-09-21 11:21:01 -0400
commit64615ae626f2932529b236c3c5f99090dbf9faad (patch)
tree69754176932bd51651273f4e58a82c16429e4b40 /lua
parent03156e42acde5b2e40c5245b8720450a4c5d25ba (diff)
fix: always load base theme
Diffstat (limited to 'lua')
-rw-r--r--lua/lvim/core/theme.lua6
-rw-r--r--lua/lvim/plugins.lua2
2 files changed, 7 insertions, 1 deletions
diff --git a/lua/lvim/core/theme.lua b/lua/lvim/core/theme.lua
index ad3c84cd..886045c9 100644
--- a/lua/lvim/core/theme.lua
+++ b/lua/lvim/core/theme.lua
@@ -40,6 +40,12 @@ M.config = function()
use_background = true, -- can be light/dark/auto. When auto, background will be set to vim.o.background
},
}
+ local status_ok, theme = pcall(require, "tokyonight")
+ if not status_ok then
+ return
+ end
+
+ theme.setup(lvim.builtin.theme.options)
end
M.setup = function()
diff --git a/lua/lvim/plugins.lua b/lua/lvim/plugins.lua
index 2140636b..fbafb17a 100644
--- a/lua/lvim/plugins.lua
+++ b/lua/lvim/plugins.lua
@@ -19,7 +19,7 @@ local core_plugins = {
config = function()
require("lvim.core.theme").setup()
end,
- disable = not vim.startswith(lvim.colorscheme, "tokyonight"),
+ -- disable = not vim.startswith(lvim.colorscheme, "tokyonight"),
},
{
"rcarriga/nvim-notify",