feat: enable dms theme, if available

This commit is contained in:
2026-07-12 08:14:37 +02:00
parent ad27c2ce6d
commit 159e95081d
+13 -2
View File
@@ -129,12 +129,23 @@ return {
SnacksDashboardTitle = { fg = "palette.turquoise" },
SnacksIndentScope = { fg = "palette.lightblue" },
NormalFloat = { bg = "palette.bgDark" },
Directory = { fg = "palette.cyan" }
Directory = { fg = "palette.cyan" },
},
},
})
if not vim.g.vscode then
vim.cmd.colorscheme('carbonfox')
local function apply()
local files = vim.fn.globpath(vim.o.runtimepath, "colors/*", false, true) ---@type string[]
for _, file in ipairs(files) do
local name = vim.fn.fnamemodify(file, ":t:r")
if name == "dms" then
vim.cmd.colorscheme("dms")
return
end
end
vim.cmd.colorscheme("carbonfox")
end
apply()
end
end,
}