Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0236dbf

Browse files
authored
Randomize babashka port (#82)
So multiple neovim instances can have admin nrepl running
1 parent4b78fc8 commit0236dbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lua/acid/nrepl.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ end
150150
nrepl.bbnrepl=function(obj)
151151
localpwd=utils.ensure_path(obj.pwdorvim.api.nvim_call_function("getcwd", {}))
152152

153-
obj.port=obj.portor"1667"
153+
obj.port=obj.portormath.random(1024,65535)
154154

155155
localcmd= {
156156
"bb","--nrepl-server",obj.port

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp