From 905fd0091d7bf73e41c8cfac77db83f89b6fca18 Mon Sep 17 00:00:00 2001 From: zenmaya Date: Thu, 13 Nov 2025 15:30:02 +0100 Subject: [PATCH] allow for customizing the [lspce] header in eldoc --- lspce.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lspce.el b/lspce.el index 62e109f..4946ad8 100644 --- a/lspce.el +++ b/lspce.el @@ -64,6 +64,11 @@ :group 'lspce :type 'boolean) +(defcustom lspce-eldoc-display-backend "[lspce]" + "If non-nil, display this variable above the documentation as a header" + :group 'lspce + :type '(choice string (const nil))) + (defcustom lspce-enable-flymake t "If non-nil, enable flymake." :group 'lspce @@ -1267,7 +1272,8 @@ matches any of the TRIGGER-CHARACTERS." ((or signature content) (setq document (concat signature content)))) (when document - (setq backend (propertize "[lspce]\n" 'face 'lspce-eldoc-backend-face)) + (when lspce-eldoc-display-backend + (setq backend (propertize (concat lspce-eldoc-display-backend "\n") 'face 'lspce-eldoc-backend-face))) (funcall callback (concat backend document)))))) ;;; diagnostics