# adi-075/alphavim architecture

> Architecture diagram of the GitHub repository adi-075/alphavim, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/adi-075/alphavim
- Repository: https://github.com/adi-075/alphavim

## Overview

##### Core Components (Central Layer)
- It to a "Configuration Manager" component (init.lua)
- Use a hexagonal architecture pattern to show the plugin system as ports and adapters

##### Plugin Management Layer
- It as a bridge between the core and the plugin ecosystem

##### Feature Modules (Arrange in a circular pattern around the core)
a. LSP Integration (after/plugin/lsp.lua):
- LSP server connections
- Auto-completion system (after/plugin/cmp.lua)

b. UI Components:
- Dashboard (lua/adi/config/dashboard.lua)
- Status Line (after/plugin/line.lua)
- File Explorer (lua/adi/config/tree.lua)

c. Development Tools:
- Telescope (after/plugin/telescope.lua) for fuzzy finding
- Terminal Integration (lua/adi/config/toggleterm.lua)
- Git Integration (after/plugin/gitsigns.lua)
- Treesitter (after/plugin/treesitter.lua) for syntax

##### Configuration Layer
- Include:
- Key mappings (keymaps.lua)
- Auto commands (autocmds.lua)
- Editor options (options.lua)

Use the following visual elements:

- Blue: Core Neovim components
- Green: LSP and completion related components
- Orange: UI elements
- Purple: Development tools
- Gray: Configuration files

- Plugin loading states (eager vs. lazy)

Special Considerations:
##### Demonstrate the plugin dependency chain

Remember to include external dependencies like ripgrep and their integration points with the system.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Core Components
    NCore[Neovim Core]:::core
    ConfigMgr[Configuration Manager]:::core
    click ConfigMgr "https://github.com/adi-075/AlphaVim/blob/master/init.lua"
    PluginMgr[Plugin Management]:::core
    click PluginMgr "https://github.com/adi-075/AlphaVim/blob/master/lua/plugins/lazy.lua"

    %% LSP & Development Tools
    LSP[LSP Integration]:::lsp
    click LSP "https://github.com/adi-075/AlphaVim/blob/master/after/plugin/lsp.lua"
    AutoCmp[Auto-completion]:::lsp
    click AutoCmp "https://github.com/adi-075/AlphaVim/blob/master/after/plugin/cmp.lua"
    TreeSitter[Treesitter]:::devtool
    click TreeSitter "https://github.com/adi-075/AlphaVim/blob/master/after/plugin/treesitter.lua"
    Telescope[Telescope]:::devtool
    click Telescope "https://github.com/adi-075/AlphaVim/blob/master/after/plugin/telescope.lua"
    GitInt[Git Integration]:::devtool
    click GitInt "https://github.com/adi-075/AlphaVim/blob/master/after/plugin/gitsigns.lua"

    %% UI Components
    Dashboard[Dashboard]:::ui
    click Dashboard "https://github.com/adi-075/AlphaVim/blob/master/lua/adi/config/dashboard.lua"
    StatusLine[Status Line]:::ui
    click StatusLine "https://github.com/adi-075/AlphaVim/blob/master/after/plugin/line.lua"
    FileExplorer[File Explorer]:::ui
    click FileExplorer "https://github.com/adi-075/AlphaVim/blob/master/lua/adi/config/tree.lua"
    IconSystem[Icons System]:::ui
    click IconSystem "https://github.com/adi-075/AlphaVim/blob/master/lua/adi/config/devicons.lua"
    Terminal[Terminal Integration]:::ui
    click Terminal "https://github.com/adi-075/AlphaVim/blob/master/lua/adi/config/toggleterm.lua"

    %% Configuration Components
    subgraph Config[Configuration Layer]
        KeyMaps[Key Mappings]:::config
        click KeyMaps "https://github.com/adi-075/AlphaVim/blob/master/lua/adi/config/keymaps.lua"
        AutoCmds[Auto Commands]:::config
        click AutoCmds "https://github.com/adi-075/AlphaVim/blob/master/lua/adi/config/autocmds.lua"
        Colors[Color Schemes]:::config
        click Colors "https://github.com/adi-075/AlphaVim/blob/master/lua/adi/config/colors.lua"
        Options[Editor Options]:::config
        click Options "https://github.com/adi-075/AlphaVim/blob/master/lua/adi/config/options.lua"
    end

    %% External Dependencies
    Ripgrep[Ripgrep]:::external
    LangServers[Language Servers]:::external

    %% Connections
    NCore --> ConfigMgr
    ConfigMgr --> PluginMgr
    PluginMgr -.-> LSP
    PluginMgr -.-> AutoCmp
    PluginMgr -.-> TreeSitter
    PluginMgr -.-> Telescope
    PluginMgr -.-> GitInt
    PluginMgr -.-> Dashboard
    PluginMgr -.-> StatusLine
    PluginMgr -.-> FileExplorer
    PluginMgr -.-> IconSystem
    PluginMgr -.-> Terminal
    
    LSP <--> LangServers
    Telescope --> Ripgrep
    
    ConfigMgr --> Config
    Config --> NCore

    %% Styles
    classDef core fill:#3498db,stroke:#2980b9,color:white
    classDef lsp fill:#2ecc71,stroke:#27ae60,color:white
    classDef ui fill:#e67e22,stroke:#d35400,color:white
    classDef devtool fill:#9b59b6,stroke:#8e44ad,color:white
    classDef config fill:#95a5a6,stroke:#7f8c8d,color:white
    classDef external fill:#ecf0f1,stroke:#bdc3c7,color:black

    %% Legend
    subgraph Legend
        L1[Core Components]:::core
        L2[LSP Components]:::lsp
        L3[UI Elements]:::ui
        L4[Dev Tools]:::devtool
        L5[Configuration]:::config
        L6[External]:::external
    end
```
