Commit bd8191143c84

Vincent Demeester <vincent@sbr.pm>
2022-03-19 11:19:43
tools/emacs: fix lsp with rnix
… and disable corfu in text-mode Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 7101e4b
Changed files (2)
tools/emacs/config/config-completion.el
@@ -235,7 +235,7 @@ instead."
 
   ;; Recommended: Enable Corfu globally. This is recommended since dabbrev can
   ;; be used globally (M-/).
-  :hook (((prog-mode text-mode tex-mode) . corfu-mode)
+  :hook (((prog-mode tex-mode) . corfu-mode) ; text-mode
          ((shell-mode eshell-mode) . my/corfu-shell-settings))
   :bind (:map corfu-map
               ("TAB" . corfu-next)
tools/emacs/config/programming-nix.el
@@ -4,6 +4,7 @@
 ;;; Code:
 (use-package nix-mode
   :if *nix*
+  :after (lsp)
   :mode ("\\.nix\\'" "\\.nix.in\\'")
   :config
   (add-to-list 'lsp-language-id-configuration '(nix-mode . "nix"))