Add lookup-documentation handler for cmake-mode
Closes #4277 Co-authored-by: Sam Whitlock <samwhitlock@users.noreply.github.com>
This commit is contained in:
parent
5233042f4a
commit
315ae16240
2 changed files with 16 additions and 1 deletions
|
@ -156,6 +156,18 @@ the children of class at point."
|
|||
do (push (cons (1+ depth) child) tree)))))))
|
||||
(eglot--error "Hierarchy unavailable")))
|
||||
|
||||
;;;###autoload
|
||||
(defun +cc-cmake-lookup-documentation-fn (_)
|
||||
"Look up the symbol at point in CMake's documentation."
|
||||
(condition-case _
|
||||
(progn
|
||||
(save-window-excursion (cmake-help))
|
||||
(when-let (buf (get-buffer "*CMake Help*"))
|
||||
(pop-to-buffer buf)
|
||||
t))
|
||||
(error nil)))
|
||||
|
||||
|
||||
;;
|
||||
;; Hooks
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue