Skip to content

Bug: no syntax highlight in flake.nix with flake.lock #3054

@SamueleFacenda

Description

@SamueleFacenda

I'm facing a strange bug with syntax highlighting, it works well (not awesome but well) with nix files, but it fallbacks to the default one (the one with only strings, true/false and int) in every flake.nix file (a standard entry point for nix).
I did a bit of research and I found out that this only happen when there is a flake.lock file in the same directory (it's always the case, with nix).
After removing the flake.lock file, in order to have syntax highlight back in the flake.nix file, I have to cut out the content of flake.nix, close micro, reopen micro and paste everithing back.

Commit hash: v2.0.12
OS: NixOS
Terminal: kitty

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions