Skip to content

Small plugin that allows you to switch between colorschemes on-the-fly

Notifications You must be signed in to change notification settings

mrs4ndman/theme-selector.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

theme-selector.nvim - Simple theme / colorscheme selector plugin

What is this?

For now, just a snippet of Lua code that uses telescope.nvim to display a list of colorschemes to choose from. It was initially part of my Telescope config, but now it is a mini-plugin, my first one at that.

It differs from the Telescope builtin :Telescope colorscheme in that you can choose the colorscheme list in this one.

Uses Telescope as a dependency, so be sure to put it as a dependency ;).


Keybinds (will make them configurable in the future, for now hardcoded :/)

  • Ctrl + j / k → Go down / up the list and put the color
  • Esc or Ctrl + c → Exit the picker
  • Enter → After filtering, choose the color and exit

Configuration ↓

You first put in require("theme-selector.colorschemes") the ones you want to have in the picker. Then the require("theme-selector") loads the plugin and the list :)

  • Example → lazy.nvim
return {
  "mrs4ndman/theme-selector.nvim",
  cmd = { "Themer" },
  dependencies = {
    "nvim-telescope/telescope.nvim",
  },
  config = function()
    require("theme-selector.colorschemes").list = {
      "catppuccin",
      "tokyonight",
      "fluoromachine",
    }
    require("theme-selector")
  end,
}

How it looks

Example image

To-do / known issues

  • User-defined list
  • User-configurable keybinds (it has defaults now, but no merging)
  • Fix bug when filtering then moving
  • Add .setup() to gather all options and loading.

About

Small plugin that allows you to switch between colorschemes on-the-fly

Topics

Resources

Stars

Watchers

Forks

Languages