blob: 6a81033c2f6c438ddfa3fc269dbc1faba2d2c55c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
function nvim --wraps 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 --query nvr
command nvim $argv
return
end
if test ! -S /tmp/nvimsocket
command nvim --listen /tmp/nvimsocket $argv
else
command nvr -s $argv
end
end
|