use neovim default if color is not found.

This commit is contained in:
2024-11-18 15:27:39 +01:00
parent 45b5b3738a
commit bc612976f7
+3 -3
View File
@@ -11,10 +11,10 @@ require('night-owl').setup({
})
function ColorMyPencils(color)
color = color or 'tokyonight'
color = color or 'default'
vim.cmd.colorscheme(color)
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
-- vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
-- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
end
ColorMyPencils('night-owl')