# visharad17/dotfiles architecture

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

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

## Overview

##### Main Components Identification

The system should be divided into three primary configuration domains:
- Neovim (IDE/Editor)
- Kitty (Terminal Emulator)
- htop (System Monitor)

##### Specific Implementation Details

Layer 1 (Top Level):
**Dotfiles Repository (Hexagon)**
- Neovim Config
- Kitty Config
- htop Config

Layer 2 (Neovim Detail):
**init.lua (Central)**
- Core Modules
- options.lua
- keymaps.lua
- diagnostics.lua
- Plugin Management
- lazy-config.lua
- Feature Modules
- LSP
- Debugging
- UI Components

##### Additional Elements

- File types and their purposes
- Plugin categories
- Configuration hierarchy
- Load order indicators

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Legend
        L1[Configuration File]
        L2([Core Feature])
        L3{{Plugin Group}}
        L4[/Terminal Tool/]
        style L1 fill:#a8d1f0
        style L2 fill:#f0a8a8
        style L3 fill:#a8f0b8
        style L4 fill:#d1a8f0
    end

    DotFiles([Dotfiles Repository])

    subgraph "Neovim Configuration"
        Init[init.lua]:::core
        LazyConfig[lazy-config.lua]:::core
        Options[options.lua]:::core
        Keymaps[keymaps.lua]:::core
        Diagnostics[diagnostics.lua]:::core
        LSPConfig[lsp-config.lua]:::core
        Statusline[statusline.lua]:::core

        subgraph "UI Enhancement"
            BufferLine[bufferline.lua]:::plugin
            ColorScheme[colorscheme.lua]:::plugin
            NvimTree[nvim-tree.lua]:::plugin
            Indent[indent.lua]:::plugin
        end

        subgraph "Development Tools"
            LSP[lsp.lua]:::plugin
            DAP[dap.lua]:::plugin
            Treesitter[treesitter.lua]:::plugin
            GitSigns[gitsigns.lua]:::plugin
        end

        subgraph "Editor Features"
            AutoPairs[auto-pairs.lua]:::plugin
            Surround[surround.lua]:::plugin
            Comment[comment.lua]:::plugin
            WhichKey[which-key.lua]:::plugin
        end

        subgraph "Language Support"
            TypeScript[typescript.lua]:::plugin
            Markdown[markdown.lua]:::plugin
            Tailwind[tailwind.lua]:::plugin
        end
    end

    subgraph "Terminal Environment"
        Kitty[/kitty.conf/]:::terminal
        Htop[/htoprc/]:::terminal
        Yarn[/package.json/]:::terminal
    end

    DotFiles --> Init
    Init --> LazyConfig
    Init --> Options
    Init --> Keymaps
    Init --> Diagnostics
    Init --> LSPConfig
    Init --> Statusline

    LazyConfig --> BufferLine
    LazyConfig --> ColorScheme
    LazyConfig --> NvimTree
    LazyConfig --> Indent
    LazyConfig --> LSP
    LazyConfig --> DAP
    LazyConfig --> Treesitter
    LazyConfig --> GitSigns
    LazyConfig --> AutoPairs
    LazyConfig --> Surround
    LazyConfig --> Comment
    LazyConfig --> WhichKey
    LazyConfig --> TypeScript
    LazyConfig --> Markdown
    LazyConfig --> Tailwind

    DotFiles --> Kitty
    DotFiles --> Htop
    DotFiles --> Yarn

    %% Click events for file navigation
    click Init "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/init.lua"
    click LazyConfig "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/lazy-config.lua"
    click Options "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/options.lua"
    click Keymaps "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/keymaps.lua"
    click Diagnostics "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/diagnostics.lua"
    click LSPConfig "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/lsp-config.lua"
    click Statusline "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/statusline.lua"
    click BufferLine "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/plugins/bufferline.lua"
    click ColorScheme "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/plugins/colorscheme.lua"
    click NvimTree "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/plugins/nvim-tree.lua"
    click Indent "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/plugins/indent.lua"
    click LSP "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/plugins/lsp.lua"
    click DAP "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/plugins/dap.lua"
    click Treesitter "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/plugins/treesitter.lua"
    click GitSigns "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/plugins/gitsigns.lua"
    click AutoPairs "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/plugins/auto-pairs.lua"
    click Surround "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/plugins/surround.lua"
    click Comment "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/plugins/comment.lua"
    click WhichKey "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/plugins/which-key.lua"
    click TypeScript "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/plugins/typescript.lua"
    click Markdown "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/plugins/markdown.lua"
    click Tailwind "https://github.com/VISHARAD17/dotfiles/blob/main/nvim/lua/plugins/tailwind.lua"
    click Kitty "https://github.com/VISHARAD17/dotfiles/blob/main/kitty/kitty.conf"
    click Htop "https://github.com/VISHARAD17/dotfiles/tree/main/htop/htoprc"
    click Yarn "https://github.com/VISHARAD17/dotfiles/blob/main/yarn/global/package.json"

    classDef core fill:#a8d1f0
    classDef plugin fill:#a8f0b8
    classDef terminal fill:#d1a8f0
```
