Function: elixir-ts--argument-indent-offset

elixir-ts--argument-indent-offset is a byte-compiled function defined in elixir-ts-mode.el.gz.

Signature

(elixir-ts--argument-indent-offset NODE PARENT &rest _)

Documentation

Return the argument offset position for NODE.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/elixir-ts-mode.el.gz
(defun elixir-ts--argument-indent-offset (node _parent &rest _)
  "Return the argument offset position for NODE."
  (if (or (treesit-node-prev-sibling node t)
          ;; Don't indent if this is the first node or
          ;; if the line is empty.
          (save-excursion
            (beginning-of-line)
            (looking-at-p "[[:blank:]]*$")))
      0 elixir-ts-indent-offset))