An open API service indexing awesome lists of open source software.

https://github.com/gsass1/ascii.nvim

A NeoVim plugin for drawing ASCII art.
https://github.com/gsass1/ascii.nvim

ascii-art documentation neovim plugin vim

Last synced: about 2 months ago
JSON representation

A NeoVim plugin for drawing ASCII art.

Awesome Lists containing this project

README

          

# ascii.nvim

A plugin to help spice up your text documentation, for NeoVim using the [remote plugin feature](https://pynvim.readthedocs.io/en/latest/usage/remote-plugins.html).

![Demonstration](https://user-images.githubusercontent.com/4589491/138596861-8fc26d75-d96b-4a2e-a20c-88ee81c77d31.gif)

**Disclaimer:** very WIP! Expect things to break and stuff not to work flawlessly until I can release a stable version.

# Features
- [x] Boxes with variable padding
- [ ] Arrows
- [ ] Circles?
- [ ] Triangles?

# Requirements

- NeoVim
- Python3

# Installation

If you're using vim-plug:
```
Plug 'gsass1/ascii.nvim'
```

After installing execute `:UpdateRemotePlugins` to register the Python3 plugin files.

# Configuration

## Variables
Put this somewhere in your config:

```VimL
let g:ascii_default_hpadding = 1
let g:ascii_default_vpadding = 1
let g:ascii_hline_char = "-"
let g:ascii_vline_char = "|"
let g:ascii_corner_char = "+"
```

## Commands
### Box
Put an ASCII box around a selection.

Usage: `:Box --hpadding=HPADDING --vpadding=VPADDING`

Bind it: `vnoremap :Box`