# v1337q/comvimed.lua architecture

> Architecture diagram of the GitHub repository v1337q/comvimed.lua, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/v1337q/comvimed.lua
- Repository: https://github.com/v1337q/comvimed.lua

## Overview

comvimed.nvim is a Neovim plugin for compiling and running code from the editor, with language-specific runners, unit-test support, configurable keymaps, a terminal split, and a Rust gutter play sign. The README documents setup and capabilities but no source excerpts were provided, so relationships are limited to those it states; runner internals and the exact role of the plugin entry file are not inferred.

Main entry points: [`lua/comvimed/init.lua`](https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/init.lua) (Plugin setup), [`lua/comvimed/config.lua`](https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/config.lua) (Options and keymaps), [`lua/comvimed/runners/rust.lua`](https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/runners/rust.lua) (Rust runner), [`lua/comvimed/runners/cpp.lua`](https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/runners/cpp.lua) (C/C++ runner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Setup and configuration"]
  node_plugin["Plugin entry<br/>[comvimed.lua]"]
  node_core["Plugin setup<br/>[init.lua]"]
  node_config["Options and keymaps<br/>[config.lua]"]
end

subgraph group_execution["Code execution"]
  node_rust["Rust runner<br/>[rust.lua]"]
  node_cpp["C/C++ runner<br/>[cpp.lua]"]
  node_python["Python runner<br/>[python.lua]"]
  node_go["Go runner<br/>[go.lua]"]
  node_other_languages["Other language runners"]
end

subgraph group_editor["Editor experience"]
  node_terminal["Terminal split<br/>[ui.lua]"]
  node_signs["Rust play sign<br/>[signs.lua]"]
end

node_user(("Neovim user"))

node_user -->|"configures"| node_core
node_user -->|"runs code"| node_rust
node_user -->|"runs code"| node_cpp
node_user -->|"runs code"| node_python
node_user -->|"runs code"| node_go
node_user -->|"runs code"| node_other_languages
node_user -->|"opens split"| node_terminal
node_user -->|"uses play sign"| node_signs
node_user -->|"sets options"| node_config

click node_plugin "https://github.com/v1337q/comvimed.lua/blob/main/plugin/comvimed.lua"
click node_core "https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/init.lua"
click node_config "https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/config.lua"
click node_rust "https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/runners/rust.lua"
click node_cpp "https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/runners/cpp.lua"
click node_python "https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/runners/python.lua"
click node_go "https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/runners/go.lua"
click node_other_languages "https://github.com/v1337q/comvimed.lua/tree/main/lua/comvimed/runners"
click node_terminal "https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/ui.lua"
click node_signs "https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/signs.lua"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_plugin,node_core,node_config,node_user toneBlue
class node_rust,node_cpp,node_python,node_go,node_other_languages toneAmber
class node_terminal,node_signs toneMint
```

## Components

### Setup and configuration

- [Plugin entry](https://github.com/v1337q/comvimed.lua/blob/main/plugin/comvimed.lua): `plugin/comvimed.lua`
- [Plugin setup](https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/init.lua): `lua/comvimed/init.lua`
- [Options and keymaps](https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/config.lua): `lua/comvimed/config.lua`

### Code execution

- [Rust runner](https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/runners/rust.lua): `lua/comvimed/runners/rust.lua`
- [C/C++ runner](https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/runners/cpp.lua): `lua/comvimed/runners/cpp.lua`
- [Python runner](https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/runners/python.lua): `lua/comvimed/runners/python.lua`
- [Go runner](https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/runners/go.lua): `lua/comvimed/runners/go.lua`
- [Other language runners](https://github.com/v1337q/comvimed.lua/tree/main/lua/comvimed/runners): `lua/comvimed/runners`

### Editor experience

- [Terminal split](https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/ui.lua): `lua/comvimed/ui.lua`
- [Rust play sign](https://github.com/v1337q/comvimed.lua/blob/main/lua/comvimed/signs.lua): `lua/comvimed/signs.lua`

### Other components

- **Neovim user**

## Connections

- Neovim user → Plugin setup: configures (evidence: `README.md`)
- Neovim user → Rust runner: runs code (evidence: `README.md`)
- Neovim user → C/C++ runner: runs code (evidence: `README.md`)
- Neovim user → Python runner: runs code (evidence: `README.md`)
- Neovim user → Go runner: runs code (evidence: `README.md`)
- Neovim user → Other language runners: runs code (evidence: `README.md`)
- Neovim user → Terminal split: opens split (evidence: `README.md`)
- Neovim user → Rust play sign: uses play sign (evidence: `README.md`)
- Neovim user → Options and keymaps: sets options (evidence: `README.md`)
