feat: enable dms theme, if available
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user