瀏覽代碼

fix(theme): do not fallback to tokyonight if no user's theme found (#3327)

CPea 2 年之前
父節點
當前提交
b6dd17548b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lua/lvim/core/theme.lua

+ 2 - 2
lua/lvim/core/theme.lua

@@ -99,8 +99,8 @@ M.setup = function()
   -- ref: https://github.com/neovim/neovim/issues/18201#issuecomment-1104754564
   local colors = vim.api.nvim_get_runtime_file(("colors/%s.*"):format(lvim.colorscheme), false)
   if #colors == 0 then
-    Log:warn(string.format("Could not find '%s' colorscheme", lvim.colorscheme))
-    lvim.colorscheme = "tokyonight"
+    Log:debug(string.format("Could not find '%s' colorscheme", lvim.colorscheme))
+    return
   end
 
   vim.g.colors_name = lvim.colorscheme