# jessezhang97/nvim architecture

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

- Interactive diagram: https://gitdiagram.com/jessezhang97/nvim
- Repository: https://github.com/jessezhang97/nvim

## Overview

##### Core Components (Main Layer)
- A "Keymaps Manager" connected to the core (keymaps.lua)

##### Plugin Management Layer
- Plugins into logical subsystems:

a. Editor Enhancement System:
- Text Manipulation (spider.lua, surround.lua)
- Code Folding (ufo.lua)
- File Navigation (tree.lua, telescope.lua)
- UI Components (colorscheme.lua, lualine.lua, noice.lua, notify.lua)

b. Development Tools System:
- LSP Management (mason.lua, lspconfig.lua)
- Language-Specific Support:
- TypeScript (lsp-typescript.lua)
- Rust (rustaceanvim.lua, after/ftplugin/rust.lua)
- Code Completion (cmp.lua)
- Code Analysis (lint.lua)
- Formatting (conform.lua)

c. Version Control System:
- Git Integration (gitsigns.lua)

##### Specific details
- Snippet system integration (snippets directory)
- Undo management (undodir)
- Configuration files (.luarc.json, stylua.toml)

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Core Components
    subgraph Core
        NV[Neovim Core]
        CM["Configuration Manager"]
        KM["Keymaps Manager"]:::core
    end

    %% Plugin Management
    PM["Plugin Manager"]:::plugin

    %% Editor Enhancement System
    subgraph EditorEnhance
        direction TB
        TM["Text Manipulation"]:::editor
        CF["Code Folding"]:::editor
        FN["File Navigation"]:::editor
    end

    %% UI Components
    subgraph UI
        direction TB
        CS["Colorscheme"]:::ui
        LL["Lualine"]:::ui
        NC["Noice"]:::ui
        NT["Notify"]:::ui
    end

    %% Development Tools
    subgraph DevTools
        direction TB
        LSP["LSP Management"]:::dev
        CMP["Code Completion"]:::dev
        LINT["Linting"]:::dev
        FMT["Formatting"]:::dev
    end

    %% Language Support
    subgraph LangSupport
        direction TB
        TS["TypeScript Support"]:::lang
        RS["Rust Support"]:::lang
    end

    %% Version Control
    subgraph VCS
        GS["Git Integration"]:::vcs
    end

    %% Additional Components
    SN["Snippet System"]:::util
    UM["Undo Management"]:::util

    %% Relationships
    NV --> CM
    CM --> KM
    CM --> PM
    PM --> EditorEnhance
    PM --> UI
    PM --> DevTools
    PM --> LangSupport
    PM --> VCS
    DevTools --> SN
    NV --> UM

    %% Click Events
    click CM "https://github.com/JesseZhang97/nvim/blob/main/init.lua"
    click KM "https://github.com/JesseZhang97/nvim/blob/main/lua/keymaps.lua"
    click PM "https://github.com/JesseZhang97/nvim/blob/main/lazy-lock.json"
    click TM "https://github.com/JesseZhang97/nvim/blob/main/lua/plugins/text.lua"
    click FN "https://github.com/JesseZhang97/nvim/blob/main/lua/plugins/tree.lua"
    click CS "https://github.com/JesseZhang97/nvim/blob/main/lua/plugins/colorscheme.lua"
    click LL "https://github.com/JesseZhang97/nvim/blob/main/lua/plugins/lualine.lua"
    click NC "https://github.com/JesseZhang97/nvim/blob/main/lua/plugins/noice.lua"
    click NT "https://github.com/JesseZhang97/nvim/blob/main/lua/plugins/notify.lua"
    click LSP "https://github.com/JesseZhang97/nvim/blob/main/lua/plugins/lspconfig.lua"
    click CMP "https://github.com/JesseZhang97/nvim/blob/main/lua/plugins/cmp.lua"
    click LINT "https://github.com/JesseZhang97/nvim/blob/main/lua/plugins/lint.lua"
    click FMT "https://github.com/JesseZhang97/nvim/blob/main/lua/plugins/conform.lua"
    click TS "https://github.com/JesseZhang97/nvim/blob/main/lua/plugins/lsp-typescript.lua"
    click RS "https://github.com/JesseZhang97/nvim/blob/main/lua/plugins/rustaceanvim.lua"
    click GS "https://github.com/JesseZhang97/nvim/blob/main/lua/plugins/gitsigns.lua"
    click CF "https://github.com/JesseZhang97/nvim/blob/main/lua/plugins/ufo.lua"
    click SN "https://github.com/JesseZhang97/nvim/tree/main/snippets"
    click UM "https://github.com/JesseZhang97/nvim/tree/main/undodir"

    %% Styling
    classDef core fill:#2196F3,stroke:#1565C0,color:white
    classDef plugin fill:#607D8B,stroke:#455A64,color:white
    classDef editor fill:#FF9800,stroke:#F57C00,color:white
    classDef ui fill:#9C27B0,stroke:#7B1FA2,color:white
    classDef dev fill:#4CAF50,stroke:#388E3C,color:white
    classDef lang fill:#00BCD4,stroke:#0097A7,color:white
    classDef vcs fill:#795548,stroke:#5D4037,color:white
    classDef util fill:#9E9E9E,stroke:#616161,color:white
```
