diff --git a/modules/programs/emacs/default.nix b/modules/programs/emacs/default.nix index 1e8888f..1abcdc8 100644 --- a/modules/programs/emacs/default.nix +++ b/modules/programs/emacs/default.nix @@ -48,6 +48,8 @@ in { json-mode rust-mode yaml-mode + lsp-mode lsp-treemacs flycheck company + dart-mode lsp-dart ]; }; }; diff --git a/modules/programs/emacs/dotemacs b/modules/programs/emacs/dotemacs index ac17d5c..6baa940 100644 --- a/modules/programs/emacs/dotemacs +++ b/modules/programs/emacs/dotemacs @@ -7,8 +7,7 @@ (setq redisplay-dont-pause t) (setq jit-lock-defer-time 0) (setq fast-but-imprecise-scrolling t) -(setq make-backup-files nil) -(setq create-lockfiles nil) +(setq make-backup-files nil) (setq create-lockfiles nil) ;; A trick for faster startup is to just disable GC for the init phase ;;; See: https://github.com/nilcons/emacs-use-package-fast#a-trick-less-gc-during-startup @@ -208,6 +207,11 @@ (use-package json-mode) (use-package rust-mode) (use-package yaml-mode) +(add-hook 'dart-mode-hook 'lsp) +(setq lsp-lens-enable t + lsp-signature-auto-activate nil + company-minimum-prefix-length 1 + read-process-output-max (* 1024 1024)) ;; Debugging ;(use-package explain-pause-mode