Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrs4ndman/theme-selector.nvim
Small plugin that allows you to switch between colorschemes on-the-fly
https://github.com/mrs4ndman/theme-selector.nvim
lua neovim neovim-plugin
Last synced: 3 days ago
JSON representation
Small plugin that allows you to switch between colorschemes on-the-fly
- Host: GitHub
- URL: https://github.com/mrs4ndman/theme-selector.nvim
- Owner: mrs4ndman
- Created: 2023-06-29T12:15:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-05T17:19:00.000Z (12 months ago)
- Last Synced: 2023-12-14T02:10:59.185Z (11 months ago)
- Topics: lua, neovim, neovim-plugin
- Language: Lua
- Homepage:
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# theme-selector.nvim - Simple theme / colorscheme selector plugin
## What is this?
For now, just a snippet of Lua code that uses [telescope.nvim](https://github.com/nvim-telescope/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`
```lua
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](assets/example.png)
### To-do / known issues
- [x] 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.