ascii-blocks.nvim
ascii-blocks.nvim copied to clipboard
Neovim plugin to prettify ASCII boxes using extended UTF-8 box drawing characters.
ascii-blocks.nvim
Quickly convert ASCII boxes into more visually appealing extended UTF-8 boxes.
Installation
Add to neovim with your favorite package manager:
Plug 'superhawk610/ascii-blocks.nvim'
Usage
This plugin provides the :AsciiBlockify
command. It will scan the current
buffer for any ASCII boxes and convert them to their UTF-8 equivalents.
For example, given this input:
+---------+ +---+
| | | | <- smallest
| some | +---+
| text |
| | <- standard
+---------+
+--------------+
| |
+-----+----+ |
| | | |
| +----+---------+
| | <- overlapping
+----------+
generate this output:
┌─────────┐ ┌───┐
│ │ │ │ <- smallest
│ some │ └───┘
│ text │
│ │ <- standard
└─────────┘
┌──────────────┐
│ │
┌─────┼────┐ │
│ │ │ │
│ └────┼─────────┘
│ │ <- overlapping
└──────────┘
Copyright
© 2022 Aaron Ross, All Rights Reserved.