Skip to content

Latest commit

 

History

History
84 lines (69 loc) · 4.08 KB

AGENTS.md

File metadata and controls

84 lines (69 loc) · 4.08 KB

Agent guidance

Purpose and layout

This repository owns personal dotfiles managed as GNU Stow packages. Every top-level package mirrors paths below the home directory. Neovim lives under nvim/.config/nvim/; Ghostty lives under ghostty/.config/ghostty/. Keep machine state, caches, histories, credentials, and secrets out of the repo.

Use stow --target="$HOME" <package> to activate packages. Preserve existing user files before replacing them, and never use stow --adopt without an explicit request because it can overwrite repository contents.

Neovim scope

The Neovim package is deliberately small and optimized for reading, navigating, and reviewing PHP, Node.js, TypeScript, and Vue projects. Preserve that focus. Do not turn it into a full IDE distribution unless the user asks.

Design constraints

  • Preserve Vim's standard motions and operators. Add mappings only when they provide a concrete workflow benefit.
  • Keep Space as the leader key and give custom mappings German descriptions.
  • Keep the configuration in init.lua while it remains understandable. Split it only when the file develops genuinely separate responsibilities.
  • Prefer plugin defaults and small explicit configurations over wrappers and abstractions.
  • Do not add completion, snippets, automatic formatting, linting, dashboards, or decorative UI plugins without an explicit request.
  • Keep review actions safe by default. Do not add Git stage, reset, checkout, or discard mappings unless explicitly requested.
  • Keep optional icon dependencies disabled unless the user asks for icons.

Neovim APIs and plugin management

  • Target Neovim 0.12 or newer.
  • Use native vim.pack; do not introduce another plugin manager.
  • Add plugin sources to the existing vim.pack.add call and let Neovim update nvim-pack-lock.json. Never edit the lockfile by hand.
  • Use vim.lsp.config and vim.lsp.enable-compatible configuration. Do not use the deprecated require("lspconfig").SERVER.setup() API.
  • Use the current nvim-treesitter main API: install() for parsers and vim.treesitter.start() for highlighting. Do not add the legacy configs.setup({ ensure_installed = ..., highlight = ... }) form.
  • Keep Vue in hybrid mode: vue_ls handles Vue functionality and vtsls loads @vue/typescript-plugin from Mason's Vue Language Server package.
  • Preserve automatic macOS appearance switching between dayfox and nightfox, including termguicolors.

Documentation

  • Update README.md whenever requirements, plugins, language support, mappings, packages, installation, or update procedures change.
  • Update Brewfile when a managed tool gains a required Homebrew dependency.
  • Keep user-facing documentation in German.

Ghostty

  • Preserve the existing light/dark theme pairing and custom navigation and umlaut keybindings unless the user asks to change them.
  • Validate Ghostty configuration through file inspection or non-GUI helper commands only.

Verification

  • Run git diff --check after edits.
  • Start Neovim headless and assert that every changed plugin or command loads.
  • For Treesitter changes, test parser availability, normal filetype detection, active highlighting, and representative highlight captures.
  • For LSP changes, verify that the intended clients attach to representative files and answer at least one relevant request. Use -n for read-only test sessions so no swap files are created.
  • For Gitsigns, Diffview, and Oil changes, exercise their real buffers or APIs in a disposable or already modified test repository without changing user project files.
  • External repositories may be used as read-only fixtures when available. Do not modify them just to test this configuration.
  • Validate package links with stow --simulate --target="$HOME" <package> and inspect the resulting symlink targets.
  • Do not launch, restart, quit, or otherwise control Ghostty. The agent itself may be running inside the user's active Ghostty process. Use headless Neovim checks and ask the user for a screenshot when visual confirmation is needed.
  • Do not commit unless the user explicitly asks.