Skip to content
Discussion options

You must be logged in to vote

Had a typo servers.astro-lang au ge-server, some more problems after but was able to solve it.
I came up with this solution (AI supported haha) probably not the most elegant way:

    globals = {
      astro_typescript =
        "${pkgs.typescript}/lib/node_modules/typescript/lib";
    };

    lsp = {
      enable = true;
      presets.astro-language-server.enable = true;
      servers.astro-language-server = {
        cmd = pkgs.lib.mkForce [
          "${pkgs.coreutils}/bin/env"
          "NODE_PATH=${pkgs.typescript}/lib/node_modules"
          "${pkgs.astro-language-server}/bin/astro-ls"
          "--stdio"
        ];

        init_options.typescript = pkgs.lib.mkForce (
          lib.…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jojomoee
Comment options

@NotAShelf
Comment options

@jojomoee
Comment options

Answer selected by jojomoee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants