refactor(colorscheme.lua): clean up indentation and remove commented out code

feat(colorscheme.lua): set default color to "rose-pine" if no color argument is provided
feat(colorscheme.lua): set theme to "tokyonight" by default
This commit is contained in:
David Ibia
2024-01-13 23:55:39 +01:00
parent 159b0e0b68
commit 3e331e02b6

View File

@@ -1,8 +1,8 @@
function SetTheme(color) function SetTheme(color)
color = color or "rose-pine" color = color or "rose-pine"
vim.cmd.colorscheme(color) vim.cmd.colorscheme(color)
-- vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) -- vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
-- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) -- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
end end
SetTheme("tokyonight") SetTheme("tokyonight")