summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCPea <[email protected]>2022-10-24 15:01:19 +0700
committerCPea <[email protected]>2022-10-24 10:41:07 +0200
commitb6dd17548bc8ccede8ff1e12f602bc50ec219465 (patch)
treecd67efda8e572dcd4198e00e01c6b326a38505f0
parent30629e1a625a20eeebaa2d0ecdc79f7c26d1626c (diff)
fix(theme): do not fallback to tokyonight if no user's theme found (#3327)
-rw-r--r--lua/lvim/core/theme.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lvim/core/theme.lua b/lua/lvim/core/theme.lua
index 0f960d3d..efe2b404 100644
--- a/lua/lvim/core/theme.lua
+++ b/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