Selaa lähdekoodia

fix: always load base theme

ChristianChiarulli 2 vuotta sitten
vanhempi
commit
64615ae626
2 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  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",