# 22tsb/nvim architecture

> Architecture diagram of the GitHub repository 22tsb/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/22tsb/nvim
- Repository: https://github.com/22tsb/nvim

## Overview

This repository is a personal Neovim configuration: it customizes editor behavior and integrates navigation, language-server, and formatting features. The documented user workflow is to invoke editor actions through keybindings, such as searching with Telescope, navigating Harpoon marks, or requesting LSP operations. The tree also shows plugin configuration and language-specific Tree-sitter queries. No source excerpts were provided, so the graph limits relationships to capabilities explicitly described in the README; it does not assert how configuration files call one another.

Main entry points: [`lua/config/keybinds.lua`](https://github.com/22tsb/nvim/blob/main/lua/config/keybinds.lua) (Keybindings), [`after/plugin/telescope.lua`](https://github.com/22tsb/nvim/blob/main/after/plugin/telescope.lua) (Telescope search), [`after/plugin/harpoon.lua`](https://github.com/22tsb/nvim/blob/main/after/plugin/harpoon.lua) (Harpoon marks), [`plugin/lsp.lua`](https://github.com/22tsb/nvim/blob/main/plugin/lsp.lua) (LSP features)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editor["Editor configuration"]
  node_keybinds["Keybindings<br/>[keybinds.lua]"]
  node_options["Editor options<br/>[options.lua]"]
end

subgraph group_navigation["Navigation tools"]
  node_telescope["Telescope search<br/>[telescope.lua]"]
  node_harpoon["Harpoon marks<br/>[harpoon.lua]"]
  node_oil["File browsing<br/>[oil.lua]"]
end

subgraph group_language["Language tooling"]
  node_lsp["LSP features<br/>[lsp.lua]"]
  node_formatting["Formatting<br/>[quickformat.lua]"]
  node_treesitter["Syntax queries"]
  node_docgen["Comment generation<br/>[docgen.lua]"]
end

node_user(("Neovim user"))

node_user -->|"uses"| node_keybinds
node_user -->|"searches with"| node_telescope
node_user -->|"navigates with"| node_harpoon
node_user -->|"requests language actions"| node_lsp
node_user -->|"formats code"| node_formatting
node_user -->|"generates comments"| node_docgen

click node_keybinds "https://github.com/22tsb/nvim/blob/main/lua/config/keybinds.lua"
click node_options "https://github.com/22tsb/nvim/blob/main/lua/config/options.lua"
click node_telescope "https://github.com/22tsb/nvim/blob/main/after/plugin/telescope.lua"
click node_harpoon "https://github.com/22tsb/nvim/blob/main/after/plugin/harpoon.lua"
click node_oil "https://github.com/22tsb/nvim/blob/main/plugin/oil.lua"
click node_lsp "https://github.com/22tsb/nvim/blob/main/plugin/lsp.lua"
click node_formatting "https://github.com/22tsb/nvim/blob/main/plugin/quickformat.lua"
click node_treesitter "https://github.com/22tsb/nvim/tree/main/queries"
click node_docgen "https://github.com/22tsb/nvim/blob/main/plugin/docgen.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_keybinds,node_options,node_user toneBlue
class node_telescope,node_harpoon,node_oil toneAmber
class node_lsp,node_formatting,node_treesitter,node_docgen toneMint
```

## Components

### Editor configuration

- [Keybindings](https://github.com/22tsb/nvim/blob/main/lua/config/keybinds.lua): `lua/config/keybinds.lua`
- [Editor options](https://github.com/22tsb/nvim/blob/main/lua/config/options.lua): `lua/config/options.lua`

### Navigation tools

- [Telescope search](https://github.com/22tsb/nvim/blob/main/after/plugin/telescope.lua): `after/plugin/telescope.lua`
- [Harpoon marks](https://github.com/22tsb/nvim/blob/main/after/plugin/harpoon.lua): `after/plugin/harpoon.lua`
- [File browsing](https://github.com/22tsb/nvim/blob/main/plugin/oil.lua): `plugin/oil.lua`

### Language tooling

- [LSP features](https://github.com/22tsb/nvim/blob/main/plugin/lsp.lua): `plugin/lsp.lua`
- [Formatting](https://github.com/22tsb/nvim/blob/main/plugin/quickformat.lua): `plugin/quickformat.lua`
- [Syntax queries](https://github.com/22tsb/nvim/tree/main/queries): `queries`
- [Comment generation](https://github.com/22tsb/nvim/blob/main/plugin/docgen.lua): `plugin/docgen.lua`

### Other components

- **Neovim user**

## Connections

- Neovim user → Keybindings: uses (evidence: `README.md`)
- Neovim user → Telescope search: searches with (evidence: `README.md`)
- Neovim user → Harpoon marks: navigates with (evidence: `README.md`)
- Neovim user → LSP features: requests language actions (evidence: `README.md`)
- Neovim user → Formatting: formats code (evidence: `README.md`)
- Neovim user → Comment generation: generates comments (evidence: `README.md`)
