From a27cd2de139f4eda4ac930134861af42c2b4c8c6 Mon Sep 17 00:00:00 2001 From: Ethan Leba Date: Thu, 2 Dec 2021 08:30:13 -0500 Subject: [PATCH] fix(sh): disable meta fetch by default on mac OS The `whatis` command is excessively slow on mac OS, rendering company-shell unusable. Ref: #5839 --- modules/lang/sh/config.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/lang/sh/config.el b/modules/lang/sh/config.el index d2742a2cb..1649e0786 100755 --- a/modules/lang/sh/config.el +++ b/modules/lang/sh/config.el @@ -78,7 +78,9 @@ :after sh-script :config (set-company-backend! 'sh-mode '(company-shell company-files)) - (setq company-shell-delete-duplicates t)) + (setq company-shell-delete-duplicates t + ;; whatis lookups are exceptionally slow on macOS (#5860) + company-shell-dont-fetch-meta IS-MAC)) (use-package! fish-mode :when (featurep! +fish)