Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for nix-ts-mode #41

Closed
terlar opened this issue Jul 9, 2024 · 0 comments
Closed

Support for nix-ts-mode #41

terlar opened this issue Jul 9, 2024 · 0 comments

Comments

@terlar
Copy link
Contributor

terlar commented Jul 9, 2024

There is now a tree-sitter based Nix mode that behaves better in some sense, but I still see a bit of weird cases.

Anyways I tried to duplicate all the nix-mode definitions with nix-ts-mode and it kind of works, however, it seems on multi-line '' blocks the indentation is not stripped and you get an extra line first/last.

Editing:

{
  abc = {
    home = {
      home = {
        sessionVariables.DOCKER_HOST = "unix://$XDG_RUNTIME_DIR/podman/podman.sock";
        file.".actrc".text = ''
          --platform ubuntu-latest=catthehacker/ubuntu:act-latest
          --container-daemon-socket /run/user/${
            toString config.users.users.${config.abc.username}.uid
          }/podman/podman.sock
        '';
      };
    };
  };
}

Yields:


          --platform ubuntu-latest=catthehacker/ubuntu:act-latest
          --container-daemon-socket /run/user/${
            toString config.users.users.${config.abc.username}.uid
          }/podman/podman.sock
        

With nix-mode I get:

--platform ubuntu-latest=catthehacker/ubuntu:act-latest
--container-daemon-socket /run/user/${
  toString config.users.users.${config.abc.username}.uid
}/podman/podman.sock

Any ideas what could be the culprit?

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

No branches or pull requests

1 participant