diff options
Diffstat (limited to 'openspec/specs')
| -rw-r--r-- | openspec/specs/editor-toolchain/spec.md | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/openspec/specs/editor-toolchain/spec.md b/openspec/specs/editor-toolchain/spec.md new file mode 100644 index 0000000..8320e61 --- /dev/null +++ b/openspec/specs/editor-toolchain/spec.md | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | # editor-toolchain Specification | ||
| 2 | |||
| 3 | ## Purpose | ||
| 4 | |||
| 5 | Provisions, via the shared home-manager profile, the runtime toolchain that the | ||
| 6 | externally Stow-managed Neovim/mason.nvim config depends on to install and run LSP | ||
| 7 | servers, formatters, and debug adapters — without home-manager owning that editor | ||
| 8 | config itself. | ||
| 9 | |||
| 10 | ## Requirements | ||
| 11 | |||
| 12 | ### Requirement: mason.nvim installer dependencies are provisioned | ||
| 13 | The shared home-manager profile SHALL include a Node.js runtime (providing `npm`), a | ||
| 14 | Python 3 interpreter (providing `python3`), and `unzip` on `PATH`, so that | ||
| 15 | `mason.nvim`'s package installers can locate the tools they shell out to. | ||
| 16 | |||
| 17 | #### Scenario: npm-based Mason package installs successfully | ||
| 18 | - **WHEN** the shared home profile is activated and `mason.nvim` installs an | ||
| 19 | npm-based package (for example an LSP server distributed via npm) | ||
| 20 | - **THEN** `mason.nvim`'s installer finds `npm` on `PATH` and the installation does | ||
| 21 | not fail with an `ENOENT`/"could not find executable" error for `npm` | ||
| 22 | |||
| 23 | #### Scenario: Python-based Mason package installs successfully | ||
| 24 | - **WHEN** the shared home profile is activated and `mason.nvim` installs a | ||
| 25 | Python-based package (for example `debugpy`) | ||
| 26 | - **THEN** `mason.nvim`'s installer finds a `python3` interpreter on `PATH` and the | ||
| 27 | installation does not fail with a "no python3 installation found" error | ||
| 28 | |||
| 29 | #### Scenario: Archive-based Mason package installs successfully | ||
| 30 | - **WHEN** the shared home profile is activated and `mason.nvim` installs a package | ||
| 31 | distributed as a zip archive (for example `terraform-ls`) | ||
| 32 | - **THEN** `mason.nvim`'s installer finds `unzip` on `PATH` and the installation does | ||
| 33 | not fail with an `ENOENT`/"could not find executable" error for `unzip` | ||
| 34 | |||
| 35 | ### Requirement: Editor toolchain packages do not manage editor configuration | ||
| 36 | Packages provisioned by this capability SHALL supply only the underlying | ||
| 37 | interpreters/tools that the externally-managed Neovim dotfiles config depends on; | ||
| 38 | this capability SHALL NOT generate, own, or otherwise manage any Neovim | ||
| 39 | configuration file (for example `init.lua` or plugin/LSP configuration). | ||
| 40 | |||
| 41 | #### Scenario: No competing Neovim configuration is generated | ||
| 42 | - **WHEN** the shared home profile provisions the editor toolchain packages | ||
| 43 | - **THEN** no Neovim configuration file is created or managed by this capability — | ||
| 44 | the externally Stow-managed dotfiles config remains the sole owner of that | ||
| 45 | configuration | ||
