An extension for Telescope plugin to switch colorschemes. It will read all your installed themes (in addition to Nvim builtin themes)
Prerequisite Telescope🔭 (plugin for neovim)
Using packer.nvim or lazy.nvim plugin managers
🔻 ${\textsf{\color{lightgreen}Add this line to your init.lua :}}$
require("current-theme")
🔻 ${\textsf{\color{lightskyblue}As a plugin, example with keybind (using lazy)}}$
return {
"nvim-telescope/telescope.nvim",
tag = "0.1.5",
cmd = "Telescope",
dependencies = {
"Paulobox/themes.nvim",
"nvim-lua/plenary.nvim",
},
config = function()
local telescope = require("telescope")
telescope.load_extension("themes")
end,
},
vim.keymap.set("n", "<leader>th", ":Telescope themes<CR>", {noremap = true, silent = true, desc = "Theme Switcher"})
:Telescope themes
Keybind to • <leader>
th • for quick access
vim.keymap.set("n", "<leader>th", ":Telescope themes<CR>", {noremap = true, silent = true, desc = "Theme Switcher"})
You need to add require require("current-theme")
at the end of your
vim.o.termguicolors = true
Neovim's plugin Telescope🔭: nvim-telescope/telescope.nvim
Lazy💤 plugin manager folke/lazy.nvim
Screenshot colorscheme embark-theme/vim
Original made by /andrew-george/
- It is inspired by NvChad's theme switcher, but made to work with most custom configurations.