aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fish/functions/nvim.fish4
1 files changed, 2 insertions, 2 deletions
diff --git a/fish/functions/nvim.fish b/fish/functions/nvim.fish
index 6fb1cb8..6321439 100644
--- a/fish/functions/nvim.fish
+++ b/fish/functions/nvim.fish
@@ -1,12 +1,12 @@
function nvim --description 'open a new nvim instance or connect to an existing one using nvr(1)'
# if `nvr` is not installed, nevermind. just run `nvim`
- if ! command -v nvr
+ if ! command -v nvr >/dev/null
command nvim $argv
end
if test ! -S /tmp/nvimsocket
command nvim --listen /tmp/nvimsocket $argv
else
- command nvr $argv
+ command nvr -s $argv
end
end