mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 23:44:55 +01:00
fix: comparisons with null, hardcoded path
This commit is contained in:
parent
c0285c08ff
commit
38bf411d54
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
local BINARY = vim.g.codemp_binary or "/home/alemi/projects/codemp/target/debug/client-nvim"
|
local BINARY = vim.g.codemp_binary or "./codemp-client-nvim"
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
M.jobid = nil
|
M.jobid = nil
|
||||||
|
@ -91,7 +91,7 @@ vim.api.nvim_create_user_command('Stop',
|
||||||
|
|
||||||
vim.api.nvim_create_user_command('Share',
|
vim.api.nvim_create_user_command('Share',
|
||||||
function(args)
|
function(args)
|
||||||
if M.jobid <= 0 then
|
if M.jobid == nil or M.jobid <= 0 then
|
||||||
print("[!] connect to codemp server first")
|
print("[!] connect to codemp server first")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -107,7 +107,7 @@ vim.api.nvim_create_user_command('Share',
|
||||||
|
|
||||||
vim.api.nvim_create_user_command('Join',
|
vim.api.nvim_create_user_command('Join',
|
||||||
function(args)
|
function(args)
|
||||||
if M.jobid <= 0 then
|
if M.jobid == nil or M.jobid <= 0 then
|
||||||
print("[!] connect to codemp server first")
|
print("[!] connect to codemp server first")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue