                        (and (> (- (skip-chars-backward " \t" (line-beginning-position))) 0)
                             (bolp))))
                 (doom/backward-delete-whitespace-to-column))
-               ((let* ((pair (sp-get-thing))
+               ((let* ((pair (ignore-errors (sp-get-thing)))
                        (op   (plist-get pair :op))
                        (cl   (plist-get pair :cl))
                        (beg  (plist-get pair :beg))


If INLINE is nil, returns t if the opening and closing braces are on adjacent
lines, above and below, with only whitespace in between."
  (when-let* ((pair (or pair (sp-get-thing))))
    (let ((beg (plist-get pair :beg))
          (end (plist-get pair :end))
          (pt (point)))

  "Delete back to the previous column of whitespace, or as much whitespace as
possible, or just one char if that's not possible."
  (interactive)
  (let* ((context (ignore-errors (sp-get-thing)))
         (op (plist-get context :op))
         (cl (plist-get context :cl))
         open-len close-len)
