We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f02e76 commit 620838aCopy full SHA for 620838a
plugin/nix.vim
@@ -32,8 +32,13 @@ endfunction
32
33
" See command :NixShell
34
function! nix#add_pkg_to_env(args)
35
- echo "nix-shell " . a:args
+ let l:displaycmd = "nix-shell " . a:args
36
+ echo l:displaycmd
37
let l:env = systemlist("nix-shell --run env " . a:args)
38
+ if v:shell_error
39
+ echo "Command failed: " . l:displaycmd
40
+ return
41
+ endif
42
call nix#set_env(l:env)
43
echo "Environment updated"
44
endfunction
0 commit comments