From cb96141ecf49502de5ff3eff4c21998a0599d936 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Tue, 22 Jul 2025 03:21:37 +0300 Subject: [PATCH] helix: fix lsp config decl --- modules/common/editor/default.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/modules/common/editor/default.nix b/modules/common/editor/default.nix index d723d7a..e7a23ff 100644 --- a/modules/common/editor/default.nix +++ b/modules/common/editor/default.nix @@ -66,10 +66,10 @@ in { args.program = "{0}"; args.initCommands = let - primer = pkgs.runCommand "primer" {} (/* py */ '' - mkdir $out - echo ' + # Why? Helix injections. + writeText = pkgs.writeText; + primer = writeText "primer.py" '' import subprocess import pathlib import lldb @@ -82,9 +82,7 @@ in { # Load lldb_lookup.py and execute lldb_commands with the correct path lldb.debugger.HandleCommand(f"""command script import "{rustlib_etc / 'lldb_lookup.py'}" """) lldb.debugger.HandleCommand(f"""command source -s 0 "{rustlib_etc / 'lldb_commands'}" """) - - ' > $out/primer.py - ''); + ''; in [ "command script import ${primer}/primer.py" ]; }]; }