将 ace 编辑器行编号更改为相对于光标

change ace editor line numbering to relative to cursor

是否可以更改Ace Editor的行号以显示相对于当前光标位置的行,例如下面的gif?当然不需要那么漂亮

编辑器里有relativeLineNumbers选项,看起来差不多

editor.setOption("relativeLineNumbers", true)