fix(nvim): regex

This commit is contained in:
u2515h
2024-01-25 18:32:50 +01:00
parent ffa62aedfd
commit d7e30ca465
4 changed files with 5 additions and 7 deletions

View File

@@ -74,7 +74,7 @@ in
let
out = builtins.readFile (pkgs.runCommandLocal "extract-deps"
{ nativeBuildInputs = [ pkgs.gnused ]; __contentAddressed = true; } ''
sed -nr 's/.*(deps\.(.*)_path|deps\["(.*)"\]).*/\2/p' ${file} | uniq > $out
sed -nr 's/.*(deps\["(.*)_path"\]).*/\2/p' ${file} | uniq > $out
'');
names = lib.splitString "\n" out;
in
@@ -83,7 +83,7 @@ in
lldb = pkgs.lldb;
rust_analyzer = rust-analyzer;
typst_lsp = pkgs.typst-lsp;
inherit (pkgs.nodePackages) typescript-language-server bash-language-server;
inherit (pkgs.nodePackages) typescript-language-server bash-language-server;
};
pathsLua = pkgs.writeTextFile {
name = "nvim-deps.lua";