# tvonwolfe/dotfiles architecture

> Architecture diagram of the GitHub repository tvonwolfe/dotfiles, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2024-12-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tvonwolfe/dotfiles
- Repository: https://github.com/tvonwolfe/dotfiles

## Overview

##### Main Components

a. Core Configuration Groups:
- Terminal Emulators (Kitty, WezTerm)
- Text Editor (Neovim)
- Development Tools (Tmux, Solargraph)
- System UI Components (Waybar, Sway-related)
- System Information (Neofetch)

b. Special focus on Neovim as it's the most complex component with multiple plugins and configurations.

##### Relationships to Highlight

- Solargraph LSP → Neovim LSP Config
- Terminal Emulators → Theming System
- Waybar → System Integration

##### Specific Implementation Details

Use the following symbols and conventions:
- Rounded rectangles for configuration categories
- Ovals for specific configuration files
- Double lines for data flow

- Blue: Neovim ecosystem
- Green: Terminal emulators
- Purple: Development tools
- Orange: System UI components
- Gray: Utility configurations

##### Important Subsystems to Detail

Neovim Configuration Structure:
- Plugin management system
- LSP configuration
- File type-specific settings
- Custom keymaps
- Autocommands

Terminal Integration:
- How different terminal emulators (Kitty, WezTerm) interact with:
- Theme management
- Key bindings
- Integration with tmux

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Legend
        A[Application]
        B([Configuration Category])
        C[[Specific Config]]
        D[(Plugin)]
        style A fill:#f0f0f0
        style B fill:#e1e1e1
        style C fill:#d2d2d2
        style D fill:#c3c3c3
    end

    subgraph Terminals
        Kitty["Kitty Terminal"]:::terminal
        WezTerm["WezTerm"]:::terminal
        KittyTheme["Kitty Themes"]:::theme
        WezTheme["WezTerm Theme"]:::theme
        
        Kitty --> KittyTheme
        WezTerm --> WezTheme
    end

    subgraph "Neovim Environment"
        NVCore["Neovim Core"]:::editor
        
        subgraph "Core Components"
            Options["Core Settings"]:::nvconfig
            Keymaps["Keymaps"]:::nvconfig
            PluginMgr["Plugin Management"]:::nvconfig
        end
        
        subgraph "Plugin Ecosystem"
            LSPConfig["LSP Configuration"]:::nvplugin
            UIPlugins["UI Enhancement"]:::nvplugin
            DevTools["Development Tools"]:::nvplugin
            LangSupport["Language Support"]:::nvplugin
            
            subgraph "UI Components"
                Lualine["Lualine"]:::ui
                NvimTree["Nvim Tree"]:::ui
                ColorScheme["Color Scheme"]:::ui
            end
            
            subgraph "Development Suite"
                DAP["Debug Adapter"]:::dev
                Neotest["Testing Framework"]:::dev
                Trouble["Diagnostics"]:::dev
            end
        end
        
        NVCore --> Options
        NVCore --> Keymaps
        NVCore --> PluginMgr
        PluginMgr --> LSPConfig
        PluginMgr --> UIPlugins
        PluginMgr --> DevTools
        PluginMgr --> LangSupport
        
        UIPlugins --> Lualine
        UIPlugins --> NvimTree
        UIPlugins --> ColorScheme
        
        DevTools --> DAP
        DevTools --> Neotest
        DevTools --> Trouble
    end

    subgraph "Development Tools"
        Tmux["Tmux"]:::devtool
        Solargraph["Solargraph Ruby"]:::devtool
        
        Solargraph -.-> LSPConfig
    end

    subgraph "System UI"
        Waybar["Waybar"]:::sysui
        WaybarStyle["Waybar Style"]:::sysui
        Neofetch["Neofetch"]:::sysutil
        
        Waybar --> WaybarStyle
    end

    %% Click events for component mapping
    click Kitty "https://github.com/tvonwolfe/dotfiles/blob/main/kitty/kitty.conf"
    click WezTerm "https://github.com/tvonwolfe/dotfiles/blob/main/wezterm/wezterm.lua"
    click Options "https://github.com/tvonwolfe/dotfiles/blob/main/nvim/lua/options.lua"
    click PluginMgr "https://github.com/tvonwolfe/dotfiles/blob/main/nvim/lua/plugins.lua"
    click LSPConfig "https://github.com/tvonwolfe/dotfiles/blob/main/nvim/lua/plugins/lspconfig.lua"
    click Lualine "https://github.com/tvonwolfe/dotfiles/blob/main/nvim/lua/plugins/lualine.lua"
    click NvimTree "https://github.com/tvonwolfe/dotfiles/blob/main/nvim/lua/plugins/nvim-tree.lua"
    click ColorScheme "https://github.com/tvonwolfe/dotfiles/blob/main/nvim/lua/plugins/colorscheme.lua"
    click DAP "https://github.com/tvonwolfe/dotfiles/blob/main/nvim/lua/plugins/dap.lua"
    click Neotest "https://github.com/tvonwolfe/dotfiles/blob/main/nvim/lua/plugins/neotest.lua"
    click Trouble "https://github.com/tvonwolfe/dotfiles/blob/main/nvim/lua/plugins/trouble.lua"
    click Tmux "https://github.com/tvonwolfe/dotfiles/blob/main/tmux/tmux.conf"
    click Solargraph "https://github.com/tvonwolfe/dotfiles/blob/main/solargraph/config.yml"
    click Waybar "https://github.com/tvonwolfe/dotfiles/tree/main/waybar/config"
    click WaybarStyle "https://github.com/tvonwolfe/dotfiles/blob/main/waybar/style.css"
    click Neofetch "https://github.com/tvonwolfe/dotfiles/blob/main/neofetch/config.conf"
    click LangSupport "https://github.com/tvonwolfe/dotfiles/tree/main/nvim/ftplugin/"
    click KittyTheme "https://github.com/tvonwolfe/dotfiles/tree/main/kitty/themes/"
    click WezTheme "https://github.com/tvonwolfe/dotfiles/blob/main/wezterm/theme.lua"
    click Keymaps "https://github.com/tvonwolfe/dotfiles/blob/main/nvim/lua/keymaps.lua"

    %% Styling
    classDef terminal fill:#90A959
    classDef theme fill:#A9B995
    classDef editor fill:#6A9FB5
    classDef nvconfig fill:#8ABCD1
    classDef nvplugin fill:#7FB8D0
    classDef ui fill:#AA759F
    classDef dev fill:#D28445
    classDef devtool fill:#75B5AA
    classDef sysui fill:#F4BF75
    classDef sysutil fill:#C0C0C0
```
