Skip to content

Markdown codeblock only render on exact match of neovim filetype name #1369

@snoweuph

Description

@snoweuph

I have confirmed that this is a bug related to nvf

  • This is a bug, and not an user error or a support request. I understand that my issue will be closed if it is not a bug in nvf.
  • I have checked the issues tab and confirmed that my issue has not yet been reported. I understand that my issue will be closed if it is a duplicate.

Description

Markdown Codeblocks only render when set to yaml not when set to yml

Installation Method

Standalone (flake outputs, nix profile install, etc.)

Installation Method (Other)

No response

nvf Version

main

Reproduction steps

  1. Activate yml TS support
  2. write something like this in a markdown file
```yaml
hello:
  bam: 1
  bazz: bazz
```

```yml
hello:
  bam: 1
  bazz: bazz
```
  1. Only One is highlighted
Image

Expected behavior

aliases like yml for yaml are also hiughlighted.
I also noticed that zsh doesnt render as sh

Actual Behavior

Only the "real" language ID renders colors

System Information

nix-info --markdown
 - system: `"x86_64-linux"`
 - host os: `Linux 6.12.66, NixOS, 25.11 (Xantusia), 25.11.20260128.fa83fd8`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.31.2`
 - channels(root): `"nixos-24.11"`
 - nixpkgs: `/nix/store/vl17kg85iryyjyf114vkqzskn7s9d5x5-source`

Relevant log output

none

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions