# Functions

DocumentOffset is a utility function used to turn an LSP cursor position into an offset from the current file buffer.
Substring will return a substring of given length from a given index.