mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 23:44:55 +01:00
27 lines
414 B
Protocol Buffer
27 lines
414 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
package codemp.cursor;
|
||
|
|
||
|
service Cursor {
|
||
|
rpc Moved (CursorPosition) returns (MovedResponse);
|
||
|
rpc Listen (UserIdentity) returns (stream CursorPosition);
|
||
|
}
|
||
|
|
||
|
message MovedResponse {}
|
||
|
|
||
|
message RowColumn {
|
||
|
int32 row = 1;
|
||
|
int32 col = 2;
|
||
|
}
|
||
|
|
||
|
message CursorPosition {
|
||
|
string user = 1;
|
||
|
string buffer = 2;
|
||
|
RowColumn start = 3;
|
||
|
RowColumn end = 4;
|
||
|
}
|
||
|
|
||
|
message UserIdentity {
|
||
|
string id = 1;
|
||
|
}
|