Created
February 3, 2025 16:19
-
-
Save RiteshChepuri/e0acea391c09aec9deab014af543ba72 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
vim.cmd.colorscheme("gruvbox") | |
end | |
end, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment