diff options
author | ChristianChiarulli <[email protected]> | 2022-09-21 11:21:01 -0400 |
---|---|---|
committer | ChristianChiarulli <[email protected]> | 2022-09-21 11:21:01 -0400 |
commit | 64615ae626f2932529b236c3c5f99090dbf9faad (patch) | |
tree | 69754176932bd51651273f4e58a82c16429e4b40 /lua | |
parent | 03156e42acde5b2e40c5245b8720450a4c5d25ba (diff) |
fix: always load base theme
Diffstat (limited to 'lua')
-rw-r--r-- | lua/lvim/core/theme.lua | 6 | ||||
-rw-r--r-- | lua/lvim/plugins.lua | 2 |
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", |