Browse Source

fix: always load base theme

ChristianChiarulli 2 năm trước cách đây
mục cha
commit
64615ae626
2 tập tin đã thay đổi với 7 bổ sung1 xóa
  1. 6 0
      lua/lvim/core/theme.lua
  2. 1 1
      lua/lvim/plugins.lua

+ 6 - 0
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()

+ 1 - 1
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",