Skip to content

Fix Quarto support when only R is enabled#75

Closed
Copilot wants to merge 1 commit into
mainfrom
copilot/ensure-quarto-functionality-with-r
Closed

Fix Quarto support when only R is enabled#75
Copilot wants to merge 1 commit into
mainfrom
copilot/ensure-quarto-functionality-with-r

Conversation

Copilot AI commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

Quarto documents failed to render and had no buffer-level syntax highlighting or chunk recognition when only the R language spec was activated.

Root causes & fixes

  • Missing knitr/rmarkdown in reqPkgs (overlays/r.nix)
    Quarto's R execution engine requires these packages in extraRPackages; without them quarto render fails on any .qmd with R chunks.

  • markdown category never enabled (flake.nixpackageDefinitions)
    The upstream nixCatsConfig bundles quarto-nvim and otter-nvim under the markdown category. The template didn't wire it up, so those plugins were never loaded — no chunk boundaries, no embedded syntax highlighting.

    markdown = config.enabledLanguages.r;
  • Dev shell quarto had no R packages (flake.nixdevShells)
    languagePackages was pulling pkgs.quarto from unoverlaied nixpkgs. Replaced with an overlaid instance (via rixOverlay + rOverlay) so the terminal-level quarto render uses the same R-aware binary as the Neovim wrapper.

Agent-Logs-Url: https://github.com/dwinkler1/np/sessions/8f21e9a2-22be-44c9-aa37-bc4fd64b20a3

Co-authored-by: dwinkler1 <22460147+dwinkler1@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants