A minimal, context-aware Neovim plugin that extends the ~ key to smartly toggle common values such as:
- Booleans:
true β false,on β off,yes β no(all case variants) - Quotes:
' β " - Operators:
+ β -
Supports both Normal and Visual modes.
- π§ Context-aware toggle under the cursor
- π Visual mode support β toggles all matching items in the selection
- π Simple and dependency-free
- π’ Lazy-loadable with lazy.nvim
With lazy.nvim
{
"Geertsky/smart-toggle.nvim",
config = function()
require("smart_toggle").setup()
end,
}