Fix for theme switcher
This commit is contained in:
@@ -14,7 +14,12 @@ function M.themeselector()
|
|||||||
|
|
||||||
for i, v in ipairs(colors) do
|
for i, v in ipairs(colors) do
|
||||||
if string.find(v, "lazy") then
|
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 themename = string.gsub(filename, ".vim", "")
|
||||||
local themename2 = string.gsub(themename, ".lua", "")
|
local themename2 = string.gsub(themename, ".lua", "")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user