Skip to content

Commit

Permalink
v0.0.25: [nvim-ghost] Server running
Browse files Browse the repository at this point in the history
  • Loading branch information
subnut committed Dec 15, 2020
1 parent 650681e commit c210e95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .binary_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.0.24
v0.0.25
6 changes: 5 additions & 1 deletion binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from simple_websocket_server import WebSocket
from simple_websocket_server import WebSocketServer

BUILD_VERSION: str = "v0.0.24"
BUILD_VERSION: str = "v0.0.25"
# TEMP_FILEPATH is used to store the port of the currently running server
TEMP_FILEPATH: str = os.path.join(tempfile.gettempdir(), "nvim-ghost.nvim.port")
WINDOWS: bool = os.name == "nt"
Expand Down Expand Up @@ -81,6 +81,10 @@ def _exit_script_if_server_already_running():
if running_port == ghost_port:
if _get_running_version() == str(BUILD_VERSION):
print("Server already running")
if neovim_focused_address is not None:
Neovim().get_handle().command(
"echom '[nvim-ghost] Server running'"
) # noqa
sys.exit()
_stop_running(running_port)
while True:
Expand Down

0 comments on commit c210e95

Please sign in to comment.