Variable: eglot-current-linepos-function
eglot-current-linepos-function is a variable defined in eglot.el.gz.
Value
eglot-utf-16-linepos
Documentation
Function calculating position relative to line beginning.
It is a function of no arguments considering the text from line
beginning up to current point. The return value is the number of
UTF code units needed to encode that text from the LSP server's
perspective. This may be a number of octets, 16-bit words or
Unicode code points, depending on whether the LSP server's
positionEncoding capability is UTF-8, UTF-16 or UTF-32,
respectively. Position of point should remain unaltered if that
return value is fed through the corresponding inverse function
eglot-move-to-linepos-function (which see).
Aliases
eglot-current-column-function (obsolete since 29.1)
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/eglot.el.gz
(defvar eglot-current-linepos-function #'eglot-utf-16-linepos
"Function calculating position relative to line beginning.
It is a function of no arguments considering the text from line
beginning up to current point. The return value is the number of
UTF code units needed to encode that text from the LSP server's
perspective. This may be a number of octets, 16-bit words or
Unicode code points, depending on whether the LSP server's
`positionEncoding' capability is UTF-8, UTF-16 or UTF-32,
respectively. Position of point should remain unaltered if that
return value is fed through the corresponding inverse function
`eglot-move-to-linepos-function' (which see).")