treewide: nushell build time configs suffixed
Add filetype suffix for LSP/tree-sitter support.
This commit is contained in:
parent
180fd43eea
commit
53cacafd9b
12 changed files with 12 additions and 12 deletions
|
|
@ -124,7 +124,7 @@ in {
|
|||
programs.nushell = mkIf cfg.enableNushellIntegration {
|
||||
extraConfig = ''
|
||||
source ${
|
||||
pkgs.runCommand "atuin-nushell-config" { } ''
|
||||
pkgs.runCommand "atuin-nushell-config.nu" { } ''
|
||||
${lib.getExe cfg.package} init nu ${flagsStr} >> "$out"
|
||||
''
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ in {
|
|||
nushell = lib.mkIf cfg.enableNushellIntegration {
|
||||
extraConfig = ''
|
||||
source ${
|
||||
pkgs.runCommand "carapace-nushell-config" { } ''
|
||||
pkgs.runCommand "carapace-nushell-config.nu" { } ''
|
||||
${bin} _carapace nushell >> "$out"
|
||||
''
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ in {
|
|||
nushell = lib.mkIf cfg.enableNushellIntegration {
|
||||
extraConfig = ''
|
||||
source ${
|
||||
pkgs.runCommand "nix-your-shell-nushell-config" { } ''
|
||||
pkgs.runCommand "nix-your-shell-nushell-config.nu" { } ''
|
||||
${lib.getExe cfg.package} nu >> "$out"
|
||||
''
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ in {
|
|||
programs.nushell = mkIf cfg.enableNushellIntegration {
|
||||
extraConfig = ''
|
||||
source ${
|
||||
pkgs.runCommand "oh-my-posh-nushell-config" { } ''
|
||||
pkgs.runCommand "oh-my-posh-nushell-config.nu" { } ''
|
||||
${
|
||||
lib.getExe cfg.package
|
||||
} init nu ${configArgument} --print >> "$out"
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ in {
|
|||
|
||||
nushell.extraConfig = lib.mkIf cfg.enableNushellIntegration ''
|
||||
source ${
|
||||
pkgs.runCommand "pay-respects-nushell-config" { } ''
|
||||
pkgs.runCommand "pay-respects-nushell-config.nu" { } ''
|
||||
${payRespectsCmd} nushell ${cfgOptions} >> "$out"
|
||||
''
|
||||
}
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ in {
|
|||
# not done here.
|
||||
extraConfig = ''
|
||||
use ${
|
||||
pkgs.runCommand "starship-nushell-config" { } ''
|
||||
pkgs.runCommand "starship-nushell-config.nu" { } ''
|
||||
${lib.getExe cfg.package} init nu >> "$out"
|
||||
''
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ in {
|
|||
programs.nushell = lib.mkIf cfg.enableNushellIntegration {
|
||||
extraConfig = ''
|
||||
source ${
|
||||
pkgs.runCommand "zoxide-nushell-config" { } ''
|
||||
pkgs.runCommand "zoxide-nushell-config.nu" { } ''
|
||||
${lib.getExe cfg.package} init nushell ${cfgOptions} >> "$out"
|
||||
''
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,6 @@
|
|||
in ''
|
||||
assertFileExists "${configDir}/config.nu"
|
||||
assertFileRegex "${configDir}/config.nu" \
|
||||
'source /nix/store/[^/]*-carapace-nushell-config'
|
||||
'source /nix/store/[^/]*-carapace-nushell-config.nu'
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
assertFileExists ${nushellConfigDir}/config.nu
|
||||
assertFileRegex \
|
||||
${nushellConfigDir}/config.nu \
|
||||
'source /nix/store/[^/]*-nix-your-shell-nushell-config'
|
||||
'source /nix/store/[^/]*-nix-your-shell-nushell-config.nu'
|
||||
|
||||
assertFileExists home-files/.zshrc
|
||||
assertFileRegex \
|
||||
|
|
|
|||
|
|
@ -21,6 +21,6 @@
|
|||
assertFileExists "${configFile}"
|
||||
assertFileRegex \
|
||||
"${configFile}" \
|
||||
'source /nix/store/[^/]*-oh-my-posh-nushell-config'
|
||||
'source /nix/store/[^/]*-oh-my-posh-nushell-config.nu'
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,6 @@
|
|||
assertFileNotRegex home-files/.bashrc '/nix/store/[^/]*-pay-respects-[^/]*/bin/pay-respects'
|
||||
assertFileNotRegex home-files/.zshrc '/nix/store/[^/]*-pay-respects-[^/]*/bin/pay-respects'
|
||||
assertFileNotRegex home-files/.config/fish/config.fish '/nix/store/[^/]*-pay-respects-[^/]*/bin/pay-respects'
|
||||
assertFileNotRegex home-files/.config/nushell/config.nu 'source /nix/store/[^/]*-pay-respects-nushell-config'
|
||||
assertFileNotRegex home-files/.config/nushell/config.nu 'source /nix/store/[^/]*-pay-respects-nushell-config.nu'
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,6 +30,6 @@
|
|||
assertFileExists home-files/.config/nushell/config.nu
|
||||
assertFileRegex \
|
||||
home-files/.config/nushell/config.nu \
|
||||
'source /nix/store/[^/]*-pay-respects-nushell-config'
|
||||
'source /nix/store/[^/]*-pay-respects-nushell-config.nu'
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue