|
1 |
| -# switchscheme.nvim |
2 |
| -A plugin made with lua to help you get all those beautiful color schemes |
| 1 | +# 🎨 switchscheme.nvim |
| 2 | + |
| 3 | +A minimal Neovim plugin for browsing and switching colorschemes **with a Telescope UI**. |
| 4 | +It allows you to preview themes live before selecting them. |
| 5 | + |
| 6 | +## ✨ Features |
| 7 | +- 🔍 **Telescope-powered UI** for selecting colorschemes. |
| 8 | +- 🎨 **Live preview** while scrolling through themes. |
| 9 | +- ⚡ **Lazy-loaded for efficiency** (via Lazy.nvim). |
| 10 | + |
| 11 | +--- |
| 12 | + |
| 13 | +## 📦 Installation |
| 14 | + |
| 15 | +### Using Lazy.nvim |
| 16 | +Add the following to your Lazy.nvim configuration: |
| 17 | + |
| 18 | +```lua |
| 19 | +{ |
| 20 | + "Rimkomatic/switchscheme.nvim", |
| 21 | + lazy = true, |
| 22 | + cmd = { "SwitchColorscheme" }, |
| 23 | + dependencies = { "nvim-telescope/telescope.nvim" }, |
| 24 | + config = function() |
| 25 | + require("switchscheme").setup() |
| 26 | + end, |
| 27 | +} |
| 28 | +``` |
| 29 | + |
| 30 | +Then, run: |
| 31 | + |
| 32 | +```sh |
| 33 | +:Lazy sync |
| 34 | +``` |
| 35 | + |
| 36 | +## 🚀 Usage |
| 37 | + |
| 38 | +### Commands |
| 39 | +| Command | Description | |
| 40 | +|----------------------|-------------------------------------| |
| 41 | +| `:SwitchColorscheme` | Open the colorscheme picker UI | |
| 42 | +| `:ListColorschemes` | Print all available colorschemes | |
| 43 | +| `:SetColorscheme <name>` | Manually apply a colorscheme | |
| 44 | + |
| 45 | +### Keybindings in Telescope UI |
| 46 | +| Key | Action | |
| 47 | +|--------|--------------------------| |
| 48 | +| ↑ / ↓ | Navigate themes | |
| 49 | +| `<CR>` | Apply selected colorscheme | |
| 50 | + |
| 51 | +--- |
| 52 | + |
| 53 | +## ⚙️ Configuration |
| 54 | +To customize `switchscheme.nvim`, use: |
| 55 | + |
| 56 | +```lua |
| 57 | +require("switchscheme").setup({ |
| 58 | + preview = true, -- Enable live preview |
| 59 | + layout = { width = 0.4, height = 0.4 }, -- Floating window size |
| 60 | +}) |
| 61 | +``` |
| 62 | + |
| 63 | +--- |
| 64 | + |
| 65 | +## 🛠️ Contributing |
| 66 | +PRs are welcome! To contribute: |
| 67 | + |
| 68 | +1. Fork the repo |
| 69 | +2. Create a new branch |
| 70 | +3. Make changes |
| 71 | +4. Submit a PR 🚀 |
| 72 | + |
| 73 | +--- |
| 74 | + |
| 75 | +## 📜 License |
| 76 | +MIT License. |
| 77 | + |
| 78 | +🌟 Enjoy effortless theme switching in Neovim! |
0 commit comments