mirror of
https://github.com/RGBCube/ncc
synced 2025-07-28 02:27:44 +00:00
helix: fix lsp config decl
This commit is contained in:
parent
372df8b48a
commit
cb96141ecf
1 changed files with 4 additions and 6 deletions
|
@ -66,10 +66,10 @@ in {
|
||||||
|
|
||||||
args.program = "{0}";
|
args.program = "{0}";
|
||||||
args.initCommands = let
|
args.initCommands = let
|
||||||
primer = pkgs.runCommand "primer" {} (/* py */ ''
|
# Why? Helix injections.
|
||||||
mkdir $out
|
writeText = pkgs.writeText;
|
||||||
echo '
|
|
||||||
|
|
||||||
|
primer = writeText "primer.py" ''
|
||||||
import subprocess
|
import subprocess
|
||||||
import pathlib
|
import pathlib
|
||||||
import lldb
|
import lldb
|
||||||
|
@ -82,9 +82,7 @@ in {
|
||||||
# Load lldb_lookup.py and execute lldb_commands with the correct path
|
# 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 script import "{rustlib_etc / 'lldb_lookup.py'}" """)
|
||||||
lldb.debugger.HandleCommand(f"""command source -s 0 "{rustlib_etc / 'lldb_commands'}" """)
|
lldb.debugger.HandleCommand(f"""command source -s 0 "{rustlib_etc / 'lldb_commands'}" """)
|
||||||
|
'';
|
||||||
' > $out/primer.py
|
|
||||||
'');
|
|
||||||
in [ "command script import ${primer}/primer.py" ];
|
in [ "command script import ${primer}/primer.py" ];
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue