We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fe94934 + 0f00c69 commit f4ceb50Copy full SHA for f4ceb50
Formula/n/neovim-remote.rb
@@ -54,21 +54,19 @@ def install
54
test do
55
socket = testpath/"nvimsocket"
56
file = testpath/"test.txt"
57
- ENV["NVIM_LISTEN_ADDRESS"] = socket
58
59
nvim = spawn(
60
- { "NVIM_LISTEN_ADDRESS" => socket },
61
- Formula["neovim"].opt_bin/"nvim", "--headless", "-i", "NONE", "-u", "NONE", file,
+ Formula["neovim"].opt_bin/"nvim", "--headless", "-i", "NONE", "-u", "NONE", "--listen", socket, file,
62
[:out, :err] => "/dev/null"
63
)
64
sleep 5
65
66
str = "Hello from neovim-remote!"
67
- system bin/"nvr", "--remote-send", "i#{str}<esc>:write<cr>"
+ system bin/"nvr", "--servername", socket, "--remote-send", "i#{str}<ESC>:write<CR>"
68
assert_equal str, file.read.chomp
69
assert_equal Process.kill(0, nvim), 1
70
71
- system bin/"nvr", "--remote-send", ":quit<cr>"
+ system bin/"nvr", "--servername", socket, "--remote-send", ":quit<CR>"
72
73
# Test will be terminated by the timeout
74
# if `:quit` was not sent correctly
0 commit comments