https://github.com/lucas-garcia-rubio/switcher.nvim
A very simple and lightweight plugin to toggle operators and boolean values.
https://github.com/lucas-garcia-rubio/switcher.nvim
lua neovim nvim plugin
Last synced: about 1 month ago
JSON representation
A very simple and lightweight plugin to toggle operators and boolean values.
- Host: GitHub
- URL: https://github.com/lucas-garcia-rubio/switcher.nvim
- Owner: lucas-garcia-rubio
- Created: 2025-08-16T14:54:21.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-17T13:50:20.000Z (10 months ago)
- Last Synced: 2025-10-07T15:24:29.702Z (9 months ago)
- Topics: lua, neovim, nvim, plugin
- Language: Lua
- Homepage:
- Size: 6.84 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# switcher.nvim
A simple and lightweight Neovim plugin to switch keywords.
Ever found yourself wanting to quickly swap `true` for `false`, or `==` for `!=`? `switcher.nvim` does just that. Place your cursor on a supported word, press a key, and watch the magic happen.
## ✨ Features
- Switch boolean values (`true` ↔ `false`, `True` ↔ `False`, etc.).
- Switch comparison operators (`==` ↔ `!=`).
- Simple and easy to configure.
- Lightweight and focused.
## 💾 Installation
Install the plugin with your favorite plugin manager.
### [lazy.nvim](https://github.com/folke/lazy.nvim)
```lua
{
'lucas-garcia-rubio/switcher.nvim',
opts = {
keymap = 'z',
}
}
```
## 🚧 TODO List
- [ ] Custom configuration of your own switches
- [ ] Alternate every boolean word in multiple lines
## 💡 Inspiration
Inspired by [rmagatti/alternate-toggler](https://github.com/rmagatti/alternate-toggler). Thanks for the simple idea that motivated me on writing my very first public plugin.