Add lookup-documentation handler for cmake-mode

Closes #4277

Co-authored-by: Sam Whitlock <samwhitlock@users.noreply.github.com>
This commit is contained in:
Henrik Lissner 2020-11-17 12:45:02 -05:00
parent 5233042f4a
commit 315ae16240
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 16 additions and 1 deletions

View file

@ -154,7 +154,10 @@ This is ignored by ccls.")
;; Major modes
(after! cmake-mode
(set-docsets! 'cmake-mode "CMake"))
(set-docsets! 'cmake-mode "CMake")
(set-popup-rule! "^\\*CMake Help\\*" :size 0.4 :ttl t)
(set-lookup-handlers! 'cmake-mode
:documentation '+cc-cmake-lookup-documentation-fn))
(use-package! company-cmake ; for `cmake-mode'
:when (featurep! :completion company)