Module scnvim.editor

Connects nvim and the sclang process.

Applies autocommands and forwards text to be evaluated to the sclang process.

Actions

on_highlight Action that runs to highlight buffer content sent to sclang.
on_send Action that runs when buffer content is sent to sclang.

Functions

send_line (cb, flash) Get the current line and send it to sclang.
send_block (cb, flash) Get the current block of code and send it to sclang.
send_selection (cb, flash) Send a visual selection.


Actions

on_highlight
Action that runs to highlight buffer content sent to sclang. The default function depends on the user config.
  • start Start range ({row, col} zero indexed)
  • finish End range ({row, col} zero indexed)
on_send
Action that runs when buffer content is sent to sclang. The default is to send the content as a string to sclang.
  • lines Table with the lines.
  • callback Optional callback function.

Functions

send_line (cb, flash)
Get the current line and send it to sclang.

Parameters:

  • cb An optional callback function.
  • flash Highlight the selected text
send_block (cb, flash)
Get the current block of code and send it to sclang.

Parameters:

  • cb An optional callback function.
  • flash Highlight the selected text
send_selection (cb, flash)
Send a visual selection.

Parameters:

  • cb An optional callback function.
  • flash Highlight the selected text
generated by LDoc 1.5.0 Last updated 2024-04-19 09:15:52