Skip to content

Instantly share code, notes, and snippets.

View RiteshChepuri's full-sized avatar
🎆
Working from home

RiteshChepuri RiteshChepuri

🎆
Working from home
View GitHub Profile
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
pattern = "*",
callback = function()
if vim.bo.filetype == "c" then
vim.cmd.colorscheme("tokyonight")
elseif vim.bo.filetype == "plaintex" then
vim.cmd.colorscheme("catppucin")
elseif vim.bo.filetype == "sh" then
vim.cmd.colorscheme("dracula")
else