Ecosyste.ms: Awesome

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

https://github.com/McKean/diagon.nvim

Use Diagon within neovim and retain the instructions so they can be modified
https://github.com/McKean/diagon.nvim

Last synced: 29 days ago
JSON representation

Use Diagon within neovim and retain the instructions so they can be modified

Lists

README

        

# diagon.nvim

Use [Diagon](https://github.com/ArthurSonzogni/Diagon) within neovim
and retain the instructions so they can be modified.

[![asciicast](https://asciinema.org/a/fU8ga9yFMXVSdECZf7zgO9m16.svg)](https://asciinema.org/a/fU8ga9yFMXVSdECZf7zgO9m16)

## Installation

Make sure you have Diagon installed:
https://github.com/ArthurSonzogni/Diagon

Use your favorite plugin manager to install diagon.nvim

For Lazy add something like this:

```
{
"mckean/diagon.nvim",
config = function()
require("diagon")
end,
},
```

### Usage

Currently the following generators are supported

* Sequence Diagram
* Mathematic Expression

Providing a name is optional but encouraged, especially when
using multiple entries in a single document.

The command `Diagon` will generate the diagram and insert it after the code block.
Once placed it can be put anywhere and subsequent calls will update the diagram.

#### Sequence Diagram
````
```sequence name
hello -> world: hi!
world -> peace: jey!
```
````
```

```

#### Math Expression

````
```math name
1+1/2 + sum(i,0,10) = 113/2
```
````
```

```