diff options
Diffstat (limited to 'modules/emacs')
-rw-r--r-- | modules/emacs/README.org | 17 | ||||
-rw-r--r-- | modules/emacs/eglot-booster.nix | 13 | ||||
-rw-r--r-- | modules/emacs/package.nix | 3 |
3 files changed, 25 insertions, 8 deletions
diff --git a/modules/emacs/README.org b/modules/emacs/README.org index da6c4e3..2427636 100644 --- a/modules/emacs/README.org +++ b/modules/emacs/README.org @@ -47,7 +47,7 @@ I'm currently testing both ~modus-themes~ and ~ef-themes~, and I love DejaVu San (use-package modus-themes) (use-package ef-themes) ;; (use-package kanagawa-theme) -(load-theme 'ef-dream t) +(load-theme 'tango-dark t) (add-hook 'after-make-frame-functions (lambda (frame) @@ -229,10 +229,9 @@ Language server support. Already comes installed but used to configure additiona :config (add-to-list 'eglot-server-programs '(nix-mode . ("nil")))) -;; (use-package eglot-booster -;; :after eglot - -;; :config (eglot-booster-mode)) +(use-package eglot-booster + :after eglot + :config (eglot-booster-mode)) #+end_src ** LSP bridge @@ -366,9 +365,13 @@ Try to use the package. #+end_src ** Typst - #+begin_src emacs-lisp :tangle yes -(use-package typst-ts-mode) +(use-package typst-ts-mode + :hook (typst-ts-mode . eglot-ensure) + :config + (with-eval-after-load 'eglot + (add-to-list 'eglot-server-programs '(typst-ts-mode . ("tinymist")))) + (setq-default eglot-workspace-configuration '(:tinymist (:lint (:enabled t))))) #+end_src * Personal diff --git a/modules/emacs/eglot-booster.nix b/modules/emacs/eglot-booster.nix new file mode 100644 index 0000000..d5f07e4 --- /dev/null +++ b/modules/emacs/eglot-booster.nix @@ -0,0 +1,13 @@ +{ trivialBuild, + fetchFromGitHub, +}: +trivialBuild { + pname = "eglot-booster"; + version = "0.1.0"; + src = fetchFromGitHub { + owner = "jdtsmith"; + repo = "eglot-booster"; + rev = "cab7803c4f0adc7fff9da6680f90110674bb7a22"; + hash = "sha256-xUBQrQpw+JZxcqT1fy/8C2tjKwa7sLFHXamBm45Fa4Y="; + }; +} diff --git a/modules/emacs/package.nix b/modules/emacs/package.nix index 9241887..97e940b 100644 --- a/modules/emacs/package.nix +++ b/modules/emacs/package.nix @@ -3,8 +3,9 @@ git nil ripgrep - emacs-lsp-booster + tinymist delta + emacs-lsp-booster ]; in pkgs.emacsWithPackagesFromUsePackage { |