Fix for theme switcher

This commit is contained in:
2024-03-21 21:20:59 +01:00
parent c975e1b240
commit 62b5fab048

View File

@@ -14,7 +14,12 @@ function M.themeselector()
for i, v in ipairs(colors) do
if string.find(v, "lazy") then
local filename = string.gsub(v, newpath .. "\\lazy\\.*\\", "")
local filename = ""
if vim.loop.os_uname().sysname == "Windows_NT" then
filename = string.gsub(v, newpath .. "\\lazy\\.*\\", "")
else
filename = string.gsub(v, newpath .. "/lazy/.*/", "")
end
local themename = string.gsub(filename, ".vim", "")
local themename2 = string.gsub(themename, ".lua", "")