Pārlūkot izejas kodu

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

CPea 2 gadi atpakaļ
vecāks
revīzija
b6dd17548b
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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