Skip to content

joshjkns/tuck.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

banner

Tuck.nvim

A simple way to surround text in neovim.

tuck.mov

Installation

Using your preferred package manager import the repo: Commonly either joshjkns/tuck.nvim or https://github.com/joshjkns/tuck.nvim Then just require tuck in your configuration file:

require("tuck")

Usage

:Tuck

Allows you to 'tuck' text, basically surround text with a symbol from the following: { ( [ < " ' `

Example:

int main(void) return 0;

Highlighting return 0; in the example above and typing :Tuck { will create:

int main(void) {return 0;}

Swapping (:Tuck -s)

:Tuck also supports swapping, for example:

func main() { fmt.Println("Hello World") }

Highlighting { fmt.Println("Hello World") } in the example avove and typing :Tuck -s ( will create:

func main() ( fmt.Println("Hello World") )

:Untuck

Opposite of :Tuck, so just removes the surrounding characters.

int main(void) {return 0;}

Highlighting {return 0;} in the example above and typing :Untuck will create:

int main(void) return 0;

About

A simple neovim plugin to allow easy surrounding of text.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages