From 8521ce9d06002837575636cf1b80aa8079098b5e Mon Sep 17 00:00:00 2001 From: JenChieh Date: Tue, 12 Sep 2023 19:47:29 -0700 Subject: [PATCH] Avoid lsp hooks --- doxygen-asterisk.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doxygen-asterisk.el b/doxygen-asterisk.el index 1833ca5..a66b6aa 100644 --- a/doxygen-asterisk.el +++ b/doxygen-asterisk.el @@ -37,6 +37,12 @@ :group 'convenience :link '(url-link :tag "Repository" "https://github.com/emacs-vs/doxygen-asterisk")) +;; +;; (@* "Externals" ) +;; + +(defvar lsp-inhibit-lsp-hooks) + ;; ;; (@* "Entry" ) ;; @@ -100,7 +106,8 @@ This fulfill condition, /* with */ into a pair." (save-excursion (when (and (doxygen-asterisk--last-char-in-line-p) (doxygen-asterisk--looking-back "/[*]" 2)) - (insert "*/"))))) + (let ((lsp-inhibit-lsp-hooks t)) + (insert "*/")))))) (provide 'doxygen-asterisk) ;;; doxygen-asterisk.el ends here