From dc3c2f9e78b9e46905930c7a5be32a73e07daa9a Mon Sep 17 00:00:00 2001 From: Gerry Agbobada Date: Thu, 28 May 2020 13:13:00 +0200 Subject: [PATCH] [review] no extension in load! / rename interactive function --- modules/lang/cc/autoload.el | 2 +- modules/lang/cc/config.el | 2 +- modules/tools/lsp/+eglot.el | 2 +- modules/tools/lsp/config.el | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/lang/cc/autoload.el b/modules/lang/cc/autoload.el index a97484b08..fb2362f02 100644 --- a/modules/lang/cc/autoload.el +++ b/modules/lang/cc/autoload.el @@ -124,7 +124,7 @@ simpler." ;; Eglot specific helper, courtesy of MaskRay ;;;###autoload -(defun eglot-ccls-inheritance-hierarchy (&optional derived) +(defun +cc/eglot-ccls-inheritance-hierarchy (&optional derived) "Show inheritance hierarchy for the thing at point. If DERIVED is non-nil (interactively, with prefix argument), show the children of class at point." diff --git a/modules/lang/cc/config.el b/modules/lang/cc/config.el index 5729d3536..f8df58814 100644 --- a/modules/lang/cc/config.el +++ b/modules/lang/cc/config.el @@ -241,7 +241,7 @@ If rtags or rdm aren't available, fail silently instead of throwing a breaking e (map! :localleader :after cc-mode :map c++-mode-map - :n :desc "Show type inheritance hierarchy" "ct" #'eglot-ccls-inheritance-hierarchy) + :n :desc "Show type inheritance hierarchy" "ct" #'+cc/eglot-ccls-inheritance-hierarchy) ;; NOTE : This setting is untested yet (after! eglot diff --git a/modules/tools/lsp/+eglot.el b/modules/tools/lsp/+eglot.el index 671599c7a..e1b8d7397 100644 --- a/modules/tools/lsp/+eglot.el +++ b/modules/tools/lsp/+eglot.el @@ -14,6 +14,6 @@ (set-popup-rule! "^\\*eglot-help" :size 0.35 :quit t :select t) (when (featurep! :checkers syntax) (after! flycheck - (load! "autoload/flycheck-eglot.el"))) + (load! "autoload/flycheck-eglot"))) (set-lookup-handlers! 'eglot--managed-mode :documentation #'+eglot/documentation-lookup-handler)) diff --git a/modules/tools/lsp/config.el b/modules/tools/lsp/config.el index 753cf32f5..431a2701c 100644 --- a/modules/tools/lsp/config.el +++ b/modules/tools/lsp/config.el @@ -9,5 +9,5 @@ working on that project after closing the last buffer.") ;; TODO : set eglot-events-buffer-size to nil in doom-debug-mode (if (featurep! +eglot) - (load! "+eglot.el") - (load! "+lsp.el")) + (load! "+eglot") + (load! "+lsp"))