|
|
`cj/python-setup` and `cj/webdev-setup` are the per-buffer preference functions wired into `python-ts-mode` / `typescript-ts-mode` / `tsx-ts-mode` / `js-ts-mode`. Sibling tests covered the command builders and prettier/mypy wrappers but not these. 9 new tests across two files cover, for each setup:
- the setq-local pairs (fill-column, tab-width, standard-indent, indent-tabs-mode) land at the language's defaults (Python: 80/4/4/nil; webdev: 100/2/2/nil),
- the mode helpers (company, flyspell-prog, superword, electric-pair-local) all get called,
- LSP gating: starts when the language server binary is on PATH, skips otherwise.
Plus a check that `cj/webdev-keybindings` binds `C-; f` to the prettier wrapper.
External modes and `executable-find` / `lsp-deferred` are stubbed so the tests run without a Python or Node toolchain.
|