How uitdots/nvim works
1. What this repo is
This is a Neovim IDE configuration, not an application. The runtime is Neovim itself, and the repo organizes editor behavior into a layered config: core editor settings, plugin specifications, plugin-specific configs, and filetype/LSP overrides.
2. Startup and bootstrap path
init.lua and lua/core/* define the base editor state first: options, globals, environment, keymaps, autocmds, highlights, and custom commands. After that, lua/configs/lazy/* and lua/plugins/init.lua hand control to lazy.nvim, which is the main plugin loader and dependency orchestrator.
3. Core editor boundary
The lua/core layer is the “always-on” foundation. It is where native Neovim behavior is established before any plugin logic runs, including register helpers, file cleanup commands, package/bootstrap helpers, and global toggles such as the NVIM_NO_IDE escape hatch mentioned in the README.
4. Plugin architecture: main vs extras
The plugin system is split into lua/plugins/main and many optional groups under lua/plugins/*. main contains the non-negotiable UX backbone: NvChad UI, file tree, fuzzy finding, buffer/tab UI, completion, and Treesitter. The rest are feature groups that can be enabled or disabled more independently.
5. Language packs as the main composition unit
lua/plugins/languages/* is the largest subsystem. Each language folder bundles the relevant editor capabilities for that language: formatter, linter, parser, LSP client, debugger, test adapters, and sometimes language-specific tooling. This is the main architecture pattern in the repo: “one language = one coordinated stack.”
6. Language toolchain flow
The usual flow for a file is: filetype detection via ftdetect/ and Treesitter queries, then language-specific plugin specs load, then Mason installs/activates external binaries, and finally Neovim wires formatter/linter/LSP/DAP support. This is why many language packs include conform, nvim-lint, nvim-treesitter, mason-tool-installer, and sometimes nvim-dap or test plugins.
7. LSP subsystem
lua/configs/lsp and after/lsp/* define the LSP behavior and server overrides. The repo uses nvim-lspconfig plus per-server config files for servers such as gopls, pyright, rust_analyzer, tsgo, vtsls, jdtls, clangd, lua_ls, yamlls, and others. after/lsp acts as the late override boundary for server-specific tuning.
8. Diagnostics, formatting, and linting
Diagnostics are centralized in lua/configs/diagnostic, while formatting and linting are plugin-driven through conform.nvim and nvim-lint. The README notes that compound filetypes are handled differently here: linting can run on them, and formatting follows the last filetype in the compound chain.
9. Debugging and test execution
Debugging is handled by the dap subsystem under lua/configs/dap and lua/plugins/dap, with adapters for browser, Node, C/C++, and other language-specific setups. Testing is a separate layer under lua/plugins/test, while overseer templates and the built-in runner under lua/configs/runner provide task/file execution paths.
10. UI and interaction layer
The UI is built around NvChad plus several auxiliary plugins in lua/plugins/ui, lua/plugins/motion, and lua/plugins/others. These add statusline/tabline behavior, completion menu polish, notifications, window navigation, motions, session handling, git indicators, and command surfaces like Telescope and Snacks.
11. AI, database, and external integrations
There are dedicated integration groups for AI (codecompanion, Copilot, MCP, VectorCode), databases (vim-dadbod, completion, UI), git, and remote/dev tooling like Chezmoi. These are not core editor functions; they are feature islands wired into Neovim through plugins and keymaps.
12. Treesitter and syntax extension boundary
after/queries/* and after/syntax/* customize parsing and highlighting beyond upstream Treesitter defaults. This repo uses these overrides for language-specific injections and highlight behavior, especially where embedded languages or nonstandard grammars need special handling.
13. Support assets and authoring tools
snippets/, spell/, prompts/, and custom ftplugins provide editing assets rather than runtime features. They support completion, spelling, template insertion, and filetype-specific behavior, which makes them part of the authoring experience layer.
14. Practical architecture summary
If you draw the diagram, the main dependency directions are: Neovim core → lazy.nvim plugin graph → language/UI/tooling plugins → external binaries and services via Mason/LSP/DAP/task runners. after/ directories and ftplugin/ act as late-stage override points, while utils/ and types/ support the whole system without being user-facing features.
Main entry points: plugins/init.lua Plugins init · languages Languages · init.lua init.lua · lazy Lazy boot
Components 25
Core startup
Always-on Neovim foundation loaded before plugins.
- init.lua · Bootstraps the config and hands off to core setup and plugin loading.
init.lua - Core opts · Editor options, globals, environment, highlights, keymaps, autocmds, and commands.
lua/core - Package boot · Package/bootstrap helpers and escape-hatch toggles for the IDE layer.
lua/core/package.lua
Plugin graph
lazy.nvim-managed plugin specifications and feature groups.
- Lazy boot · lazy.nvim initialization and plugin-loading configuration.
lua/configs/lazy - Plugins init · Top-level plugin graph assembly and grouping entrypoint.
lua/plugins/init.lua - Main stack · Non-optional UI and workflow backbone: tree, finder, bufferline, completion, treesitter, and theme integration.
lua/plugins/main - UI layer · Statusline, notifications, windows, menus, delimiters, and visual affordances.
lua/plugins/ui - Motion layer · Navigation and structural editing helpers such as surround, flash, align, and textobject tools.
lua/plugins/motion - Tooling layer · Task runners, git helpers, file utilities, sessions, spell, and miscellaneous editor integrations.
lua/plugins/others - LSP core · Central LSP behavior, autocommands, and server wiring built on nvim-lspconfig.
lua/configs/lsp - Diag/Fmt/Lint · Central diagnostics plus formatter and linter orchestration.
lua/configs/diagnostic - DAP core · Debugger adapters, configurations, and helper utilities.
lua/configs/dap - Runner core · Command execution and file/task runner definitions.
lua/configs/runner - Task templates · Overseer templates for language-specific task execution.
lua/overseer/template/default
Language packs
Per-language stacks that compose parsers, LSP, formatters, linters, DAP, and tests.
- Languages · Entrypoint for per-language plugin bundles and shared language tooling.
lua/plugins/languages - Go pack · Go-specific parser, formatter, linting, debugging, tests, tags, and build helpers.
lua/plugins/languages/go - Python pack · Python-specific parser, formatter, linting, DAP, venv selection, and typeshed support.
lua/plugins/languages/python - TS pack · TypeScript/JavaScript stack with linting, formatting, debugger, and test adapters.
lua/plugins/languages/typescript - Java pack · Java and JVM tooling centered on JDTLS, build tooling, and test integration.
lua/plugins/languages/java - YAML pack · YAML parser, formatter, linting, and schema-aware editing support.
lua/plugins/languages/yaml - SQL pack · SQL editing support with database tooling and server integration.
lua/plugins/languages/sql
Late overrides
Filetype, syntax, and server-specific override boundaries.
- LSP overrides · Per-server override files applied after the main LSP configuration.
after/lsp - Tree-sitter queries · Custom injections and highlights extending upstream Tree-sitter behavior.
after/queries - Ft plugins · Filetype-specific editor behavior and cleanup helpers.
ftplugin
Support assets
Editing assets and shared utilities used across the config.
- Assets · Snippets, spelling additions, and prompt templates supporting authoring workflows.
snippets
Connections 26
- init.lua → Core opts: loads · Establishes core editor state first.
- init.lua → Package boot: bootstraps · Initializes package/bootstrap helpers and environment toggles.
- init.lua → Lazy boot: hands off · Delegates plugin orchestration to lazy.nvim.
- Lazy boot → Plugins init: loads · Builds the plugin graph from grouped specs.
- Plugins init → Main stack: includes · Loads the non-optional UX backbone.
- Plugins init → UI layer: includes · Adds UI and interaction plugins.
- Plugins init → Motion layer: includes · Adds motion and structural-editing helpers.
- Plugins init → Tooling layer: includes · Adds task, git, session, and utility integrations.
- Plugins init → Languages: includes · Composes language packs as a major subsystem.
- Languages → Go pack: specializes · Bundles the Go toolchain stack.
- Languages → Python pack: specializes · Bundles the Python toolchain stack.
- Languages → TS pack: specializes · Bundles TypeScript and JavaScript tooling.
- Languages → Java pack: specializes · Bundles Java and JVM tooling.
- Languages → YAML pack: specializes · Bundles YAML tooling and schema support.
- Languages → SQL pack: specializes · Bundles SQL tooling and database integration.
- Plugins init → LSP core: enables · Adds core LSP behavior and server wiring.
- Plugins init → Diag/Fmt/Lint: enables · Centralizes diagnostics, formatting, and linting.
- Plugins init → DAP core: enables · Adds debugging infrastructure.
- Plugins init → Runner core: enables · Provides task and command execution flows.
- Runner core → Task templates: extends · Uses Overseer templates for language-specific tasks.
- LSP core → LSP overrides: overrides · Late server tuning and per-LSP customizations.
- Plugins init → Tree-sitter queries: extends · Customizes parsing and highlighting beyond defaults.
- Plugins init → Ft plugins: applies · Loads filetype-specific editor behavior.
- Plugins init → Assets: uses · Consumes snippets, spelling, and prompt assets.
- Plugins init → Core opts: depends on · Plugin behavior builds on the base editor state.
- Plugins init → Package boot: depends on · Plugin setup relies on core bootstrap and toggles.