Skip to content

Toggle things like true/false, 0/1, up/down, tabs/spaces so quickly it might just toggle your mind.

License

Notifications You must be signed in to change notification settings

tfpickard/illogical.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

illogical.nvim

illogical.nvim is a lightweight Neovim plugin written in Lua that toggles logical values and cycles through different case variations of the word "true". It comes with default keybindings so that you only need to load the plugin.

Features

  • Toggle Logical Values:
    Automatically flips logical words. For example, "true" becomes "false", "yes" becomes "no", etc.

  • Cycle "true" Variants:
    Cycle the word "true" through the variants: trueTrueTRUEtrue.

  • Default Keybindings:

    • ```: Toggles logical values.
    • <leader>~: Cycles through the "true" variants.

Installation

Using Lazy.nvim

Add the following to your Lazy configuration:

{
  "yourusername/illogical.nvim",
}

Using Other Plugin Managers

Clone this repository into your plugin directory or use your favorite plugin manager.
Usage

    Open a file in Neovim.
    Place your cursor over a logical word (e.g., true, yes).
    Press:
        `<leader>`` to toggle it to its logical opposite.
        <leader>~ to cycle the word "true" through its variants.

Customization

If you wish to override the default keybindings, you can set your own mappings in your configuration. Otherwise, the plugin works out-of-the-box.

About

Toggle things like true/false, 0/1, up/down, tabs/spaces so quickly it might just toggle your mind.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages