# perry280/nvim architecture

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

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

## Overview

This repository is a Neovim configuration, organized around editor settings, language-server support, plugin configuration, and autocommands. The tree indicates a user workflow of loading the configuration and using the configured editor features, but no README or source excerpts were provided. Accordingly, the graph identifies the major subsystems and their implementation paths without asserting call or data-flow relationships that cannot be verified.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["Editor configuration"]
  node_entry["Config entry<br/>[init.lua]"]
  node_settings["Editor settings<br/>[options.lua]"]
  node_keymaps["Key mappings<br/>[keymaps.lua]"]
  node_windows["Window behavior<br/>[windows.lua]"]
  node_config_init["Config setup<br/>[init.lua]"]
  node_utilities["Utilities<br/>[utils.lua]"]
  node_pack["Package setup<br/>[pack.lua]"]
end

subgraph group_lsp["Language servers"]
  node_lsp_setup["LSP setup<br/>[lsp.lua]"]
  node_server_configs["Server configurations"]
  node_server_types["Server types"]
  node_bashls["Bash language server<br/>[bashls.lua]"]
  node_bash_types["Bash server types<br/>[bashls.lua]"]
  node_clangd["Clangd server<br/>[clangd.lua]"]
  node_clangd_types["Clangd types<br/>[clangd.lua]"]
  node_lua_ls["Lua language server<br/>[lua_ls.lua]"]
  node_lua_types["Lua server types<br/>[lua_ls.lua]"]
  node_ruff["Ruff server<br/>[ruff.lua]"]
  node_ruff_types["Ruff server types<br/>[ruff.lua]"]
  node_rust_analyzer["Rust analyzer<br/>[rust_analyzer.lua]"]
  node_rust_types["Rust server types<br/>[rust_analyzer.lua]"]
  node_ty["Ty server<br/>[ty.lua]"]
  node_ty_types["Ty server types<br/>[ty.lua]"]
end

subgraph group_plugins["Plugin setup"]
  node_plugin_configs["Plugin configurations"]
  node_blink["Blink setup<br/>[blink.lua]"]
  node_colorscheme["Colorscheme setup<br/>[colorscheme.lua]"]
  node_lualine["Statusline setup<br/>[lualine.lua]"]
  node_mini["Mini setup<br/>[mini.lua]"]
  node_treesitter["Treesitter setup"]
  node_snacks["Snacks setup<br/>[snacks.lua]"]
  node_ui2["UI setup<br/>[ui2.lua]"]
  node_undotree["Undotree setup<br/>[undotree.lua]"]
end

subgraph group_events["Autocommands"]
  node_autocmd_setup["Autocommand setup<br/>[init.lua]"]
  node_pack_events["Package events<br/>[pack.lua]"]
  node_pack_changed["Changed packages<br/>[pack-changed.lua]"]
end

click node_entry "https://github.com/perry280/nvim/blob/main/init.lua"
click node_settings "https://github.com/perry280/nvim/blob/main/lua/config/options.lua"
click node_keymaps "https://github.com/perry280/nvim/blob/main/lua/config/keymaps.lua"
click node_windows "https://github.com/perry280/nvim/blob/main/lua/config/windows.lua"
click node_config_init "https://github.com/perry280/nvim/blob/main/lua/config/init.lua"
click node_utilities "https://github.com/perry280/nvim/blob/main/lua/utils.lua"
click node_pack "https://github.com/perry280/nvim/blob/main/lua/pack.lua"
click node_lsp_setup "https://github.com/perry280/nvim/blob/main/lua/lsp.lua"
click node_server_configs "https://github.com/perry280/nvim/tree/main/lsp"
click node_server_types "https://github.com/perry280/nvim/tree/main/lua/lsptypes"
click node_bashls "https://github.com/perry280/nvim/blob/main/lsp/bashls.lua"
click node_bash_types "https://github.com/perry280/nvim/blob/main/lua/lsptypes/bashls.lua"
click node_clangd "https://github.com/perry280/nvim/blob/main/lsp/clangd.lua"
click node_clangd_types "https://github.com/perry280/nvim/blob/main/lua/lsptypes/clangd.lua"
click node_lua_ls "https://github.com/perry280/nvim/blob/main/lsp/lua_ls.lua"
click node_lua_types "https://github.com/perry280/nvim/blob/main/lua/lsptypes/lua_ls.lua"
click node_ruff "https://github.com/perry280/nvim/blob/main/lsp/ruff.lua"
click node_ruff_types "https://github.com/perry280/nvim/blob/main/lua/lsptypes/ruff.lua"
click node_rust_analyzer "https://github.com/perry280/nvim/blob/main/lsp/rust_analyzer.lua"
click node_rust_types "https://github.com/perry280/nvim/blob/main/lua/lsptypes/rust_analyzer.lua"
click node_ty "https://github.com/perry280/nvim/blob/main/lsp/ty.lua"
click node_ty_types "https://github.com/perry280/nvim/blob/main/lua/lsptypes/ty.lua"
click node_plugin_configs "https://github.com/perry280/nvim/tree/main/plugin"
click node_blink "https://github.com/perry280/nvim/blob/main/plugin/blink.lua"
click node_colorscheme "https://github.com/perry280/nvim/blob/main/plugin/colorscheme.lua"
click node_lualine "https://github.com/perry280/nvim/blob/main/plugin/lualine.lua"
click node_mini "https://github.com/perry280/nvim/blob/main/plugin/mini.lua"
click node_treesitter "https://github.com/perry280/nvim/blob/main/plugin/nvim-treesitter.lua"
click node_snacks "https://github.com/perry280/nvim/blob/main/plugin/snacks.lua"
click node_ui2 "https://github.com/perry280/nvim/blob/main/plugin/ui2.lua"
click node_undotree "https://github.com/perry280/nvim/blob/main/plugin/undotree.lua"
click node_autocmd_setup "https://github.com/perry280/nvim/blob/main/lua/autocmd/init.lua"
click node_pack_events "https://github.com/perry280/nvim/blob/main/lua/autocmd/pack.lua"
click node_pack_changed "https://github.com/perry280/nvim/blob/main/lua/autocmd/pack-changed.lua"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_settings,node_keymaps,node_windows,node_config_init,node_utilities,node_pack toneBlue
class node_lsp_setup,node_server_configs,node_server_types,node_bashls,node_bash_types,node_clangd,node_clangd_types,node_lua_ls,node_lua_types,node_ruff,node_ruff_types,node_rust_analyzer,node_rust_types,node_ty,node_ty_types toneAmber
class node_plugin_configs,node_blink,node_colorscheme,node_lualine,node_mini,node_treesitter,node_snacks,node_ui2,node_undotree toneMint
class node_autocmd_setup,node_pack_events,node_pack_changed toneRose
```

## Components

### Editor configuration

- [Config entry](https://github.com/perry280/nvim/blob/main/init.lua): `init.lua`
- [Editor settings](https://github.com/perry280/nvim/blob/main/lua/config/options.lua): `lua/config/options.lua`
- [Key mappings](https://github.com/perry280/nvim/blob/main/lua/config/keymaps.lua): `lua/config/keymaps.lua`
- [Window behavior](https://github.com/perry280/nvim/blob/main/lua/config/windows.lua): `lua/config/windows.lua`
- [Config setup](https://github.com/perry280/nvim/blob/main/lua/config/init.lua): `lua/config/init.lua`
- [Utilities](https://github.com/perry280/nvim/blob/main/lua/utils.lua): `lua/utils.lua`
- [Package setup](https://github.com/perry280/nvim/blob/main/lua/pack.lua): `lua/pack.lua`

### Language servers

- [LSP setup](https://github.com/perry280/nvim/blob/main/lua/lsp.lua): `lua/lsp.lua`
- [Server configurations](https://github.com/perry280/nvim/tree/main/lsp): `lsp`
- [Server types](https://github.com/perry280/nvim/tree/main/lua/lsptypes): `lua/lsptypes`
- [Bash language server](https://github.com/perry280/nvim/blob/main/lsp/bashls.lua): `lsp/bashls.lua`
- [Bash server types](https://github.com/perry280/nvim/blob/main/lua/lsptypes/bashls.lua): `lua/lsptypes/bashls.lua`
- [Clangd server](https://github.com/perry280/nvim/blob/main/lsp/clangd.lua): `lsp/clangd.lua`
- [Clangd types](https://github.com/perry280/nvim/blob/main/lua/lsptypes/clangd.lua): `lua/lsptypes/clangd.lua`
- [Lua language server](https://github.com/perry280/nvim/blob/main/lsp/lua_ls.lua): `lsp/lua_ls.lua`
- [Lua server types](https://github.com/perry280/nvim/blob/main/lua/lsptypes/lua_ls.lua): `lua/lsptypes/lua_ls.lua`
- [Ruff server](https://github.com/perry280/nvim/blob/main/lsp/ruff.lua): `lsp/ruff.lua`
- [Ruff server types](https://github.com/perry280/nvim/blob/main/lua/lsptypes/ruff.lua): `lua/lsptypes/ruff.lua`
- [Rust analyzer](https://github.com/perry280/nvim/blob/main/lsp/rust_analyzer.lua): `lsp/rust_analyzer.lua`
- [Rust server types](https://github.com/perry280/nvim/blob/main/lua/lsptypes/rust_analyzer.lua): `lua/lsptypes/rust_analyzer.lua`
- [Ty server](https://github.com/perry280/nvim/blob/main/lsp/ty.lua): `lsp/ty.lua`
- [Ty server types](https://github.com/perry280/nvim/blob/main/lua/lsptypes/ty.lua): `lua/lsptypes/ty.lua`

### Plugin setup

- [Plugin configurations](https://github.com/perry280/nvim/tree/main/plugin): `plugin`
- [Blink setup](https://github.com/perry280/nvim/blob/main/plugin/blink.lua): `plugin/blink.lua`
- [Colorscheme setup](https://github.com/perry280/nvim/blob/main/plugin/colorscheme.lua): `plugin/colorscheme.lua`
- [Statusline setup](https://github.com/perry280/nvim/blob/main/plugin/lualine.lua): `plugin/lualine.lua`
- [Mini setup](https://github.com/perry280/nvim/blob/main/plugin/mini.lua): `plugin/mini.lua`
- [Treesitter setup](https://github.com/perry280/nvim/blob/main/plugin/nvim-treesitter.lua): `plugin/nvim-treesitter.lua`
- [Snacks setup](https://github.com/perry280/nvim/blob/main/plugin/snacks.lua): `plugin/snacks.lua`
- [UI setup](https://github.com/perry280/nvim/blob/main/plugin/ui2.lua): `plugin/ui2.lua`
- [Undotree setup](https://github.com/perry280/nvim/blob/main/plugin/undotree.lua): `plugin/undotree.lua`

### Autocommands

- [Autocommand setup](https://github.com/perry280/nvim/blob/main/lua/autocmd/init.lua): `lua/autocmd/init.lua`
- [Package events](https://github.com/perry280/nvim/blob/main/lua/autocmd/pack.lua): `lua/autocmd/pack.lua`
- [Changed packages](https://github.com/perry280/nvim/blob/main/lua/autocmd/pack-changed.lua): `lua/autocmd/pack-changed.lua`
