From a110b6ab5f9f1eecb5923e2abaea72ffe0092435 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 22 Oct 2020 14:49:21 -0400 Subject: [PATCH] Disable idle completion in nix-mode company-nixos-options is dreadfully slow, so we make code completion manual in nix-mode. Closes #3927 --- modules/lang/nix/config.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/lang/nix/config.el b/modules/lang/nix/config.el index 9e2d9ae28..3f132ee56 100644 --- a/modules/lang/nix/config.el +++ b/modules/lang/nix/config.el @@ -17,6 +17,10 @@ :documentation '(+nix/lookup-option :async t)) (set-popup-rule! "^\\*nixos-options-doc\\*$" :ttl 0 :quit t) + ;; Fix #3927: disable idle completion because `company-nixos-options' is + ;; dreadfully slow. It can still be invoked manually.. + (setq-hook! 'nix-mode-hook company-idle-delay nil) + (map! :localleader :map nix-mode-map "f" #'nix-update-fetch