Function: lsp@magit-find-file

lsp@magit-find-file is a byte-compiled function defined in magit-files.el.

Signature

(lsp@magit-find-file FN &rest ARGS)

Documentation

Do nothing when visiting blob using magit-find-file and similar.

See also https://github.com/doomemacs/doomemacs/pull/6309.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-files.el
(define-advice lsp (:around (fn &rest args) magit-find-file)
  "Do nothing when visiting blob using `magit-find-file' and similar.
See also https://github.com/doomemacs/doomemacs/pull/6309."
  (unless magit-buffer-blob-oid
    (apply fn args)))