# hirataku322/dotfiles architecture

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

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

## Overview

##### Project type and purpose
- This “project” is a personal dotfiles repository. Its purpose is to configure and customize your development environment (shell, terminal emulator, editor, prompts, etc.).
- The README simply labels it “dotfiles,” confirming it contains user‐level configurations rather than application code.

##### File structure
- Top‐level files:
- .zshrc                → Z shell initialization
- wezterm.lua           → wezterm (terminal emulator) config
- starship.toml         → starship prompt config
- gitconfig, gitignore → Git settings
- setup.sh              → bootstrap script to deploy these dotfiles
- .config/nvim hierarchy:
- init.lua              → Neovim entry point
- lua/config/*.lua      → Core editor options, keymaps, plugin manager settings
- lua/plugins/*.lua     → Individual plugin configurations
- .claude directory and .config/nvim integration hints at a custom code snippet or tool (e.g., Claude AI integration).

##### README for additional insights
- README only states “dotfiles.” No higher‐level architecture docs are provided.

##### Detail
- Every subsystem (bootstrap script, Git config, terminal, shell, prompt, editor core, plugin manager, individual plugins, custom tools).
- Clearly how each piece is loaded and how they depend on one another.

## Diagram (Mermaid)

```mermaid
flowchart TD
    User["User"]:::user

    subgraph "Bootstrap" 
        SETUP["setup.sh"]:::script
    end
    SETUP -->|"symlinks configs"| HOME["$HOME"]:::script

    subgraph "Shell Environment"
      WZ["WezTerm"]:::shell
      ZSH["Zsh (.zshrc)"]:::shell
      STAR["Starship"]:::shell
      subgraph "Git Configurations"
        GITCFG[".gitconfig"]:::shell
        GITIGN[".gitignore"]:::shell
        GIGG[".gitignore_global"]:::shell
      end
    end

    User --> WZ
    User -->|"runs nvim"| NVIM["Neovim (init.lua)"]:::editor
    HOME --> WZ
    HOME --> ZSH
    HOME --> STAR
    HOME --> GITCFG
    HOME --> GITIGN
    HOME --> GIGG
    HOME --> NVIM
    HOME --> CLAUDESET[".claude/settings.json"]:::custom

    WZ -->|"launches shell"| ZSH
    ZSH -->|"sources .zshrc"| STAR
    ZSH -->|"loads git config"| GITCFG

    subgraph "Neovim Core"
      NVIM
      KEYS["Keybindings"]:::editor
      OPTS["Options"]:::editor
      LAZY["Plugin Manager"]:::editor
    end

    NVIM --> KEYS
    NVIM --> OPTS
    NVIM --> LAZY

    subgraph "Plugins"
      AP["Autopairs"]:::plugin
      BL["Bufferline"]:::plugin
      CLAUDEP["Claude AI Plugin"]:::plugin
      CMP["Completion (nvim-cmp)"]:::plugin
      CMT["Commenting"]:::plugin
      CONF["Conform"]:::plugin
      COP["GitHub Copilot"]:::plugin
      EMO["EasyMotion"]:::plugin
      LSP["LSP"]:::plugin
      LL["Lualine"]:::plugin
      NIGHT["Nightfly Theme"]:::plugin
      TAG["Auto Tag"]:::plugin
      OIL["Oil Explorer"]:::plugin
      TEL["Telescope"]:::plugin
      TOG["ToggleTerm"]:::plugin
      TS["Treesitter"]:::plugin
      SUR["Surround"]:::plugin
      VIMDOC["Vimdoc-ja"]:::plugin
    end

    LAZY --> AP
    LAZY --> BL
    LAZY --> CLAUDEP
    LAZY --> CMP
    LAZY --> CMT
    LAZY --> CONF
    LAZY --> COP
    LAZY --> EMO
    LAZY --> LSP
    LAZY --> LL
    LAZY --> NIGHT
    LAZY --> TAG
    LAZY --> OIL
    LAZY --> TEL
    LAZY --> TOG
    LAZY --> TS
    LAZY --> SUR
    LAZY --> VIMDOC

    CLAUDEP -.-> CLAUDESET

    classDef shell fill:#E3F2FD,stroke:#2196F3,color:#0D47A1
    classDef editor fill:#E8F5E9,stroke:#4CAF50,color:#1B5E20
    classDef plugin fill:#FFF3E0,stroke:#FF9800,color:#E65100
    classDef script fill:#ECEFF1,stroke:#90A4AE,color:#37474F
    classDef custom fill:#F3E5F5,stroke:#9C27B0,color:#4A148C
    classDef user fill:#FFFFFF,stroke:#000000,color:#000000

    click SETUP "https://github.com/hirataku322/dotfiles/blob/main/setup.sh"
    click WZ "https://github.com/hirataku322/dotfiles/blob/main/.wezterm.lua"
    click ZSH "https://github.com/hirataku322/dotfiles/blob/main/.zshrc"
    click STAR "https://github.com/hirataku322/dotfiles/blob/main/.config/starship.toml"
    click GITCFG "https://github.com/hirataku322/dotfiles/blob/main/.gitconfig"
    click GITIGN "https://github.com/hirataku322/dotfiles/blob/main/.gitignore"
    click GIGG "https://github.com/hirataku322/dotfiles/blob/main/.gitignore_global"
    click NVIM "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/init.lua"
    click KEYS "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/config/keys.lua"
    click OPTS "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/config/opts.lua"
    click LAZY "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/config/lazy.lua"
    click AP "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/autopairs.lua"
    click BL "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/bufferline.lua"
    click CLAUDEP "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/claudecode.lua"
    click CMP "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/cmp.lua"
    click CMT "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/comment.lua"
    click CONF "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/conform.lua"
    click COP "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/copilot.lua"
    click EMO "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/easymotion.lua"
    click LSP "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/lsp.lua"
    click LL "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/lualine.lua"
    click NIGHT "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/nightfly.lua"
    click TAG "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/nvim_ts_autotag.lua"
    click OIL "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/oil.lua"
    click TEL "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/telescope.lua"
    click TOG "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/toggleterm.lua"
    click TS "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/treesitter.lua"
    click SUR "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/vim_surround.lua"
    click VIMDOC "https://github.com/hirataku322/dotfiles/blob/main/.config/nvim/lua/plugins/vimdoc_ja.lua"
    click CLAUDESET "https://github.com/hirataku322/dotfiles/blob/main/.claude/settings.json"
```
