non important commit
This commit is contained in:
parent
8357ab281a
commit
dd4787d5b2
1 changed files with 3 additions and 0 deletions
|
|
@ -52,12 +52,15 @@
|
|||
if $git_result.exit_code == 0 {
|
||||
let root = $git_result.stdout | str trim
|
||||
let flake_path = $root | path join "flake.nix"
|
||||
|
||||
if not ($flake_path | path exists) {
|
||||
nvim $file
|
||||
return
|
||||
}
|
||||
cd $root
|
||||
nix develop . --command nvim $file
|
||||
|
||||
print "Please"
|
||||
} else {
|
||||
nvim $file
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue