From 924d181985cf0df5ac148461753838283ba7a2cc Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Mon, 1 Jul 2024 12:24:48 +0200 Subject: [PATCH] pinwheel: Add `eglot-booster` to `emacs` --- hosts/pinwheel/modules/emacs/config.org | 4 ++++ hosts/pinwheel/modules/emacs/default.nix | 14 ++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/hosts/pinwheel/modules/emacs/config.org b/hosts/pinwheel/modules/emacs/config.org index f96b995..5c736b6 100644 --- a/hosts/pinwheel/modules/emacs/config.org +++ b/hosts/pinwheel/modules/emacs/config.org @@ -524,6 +524,10 @@ Setup prefix for keybindings. (scala-mode . alex/format-on-save) ) ) + + (use-package eglot-booster + :after eglot + :config (eglot-booster-mode)) #+END_SRC ** Eldoc-box #+BEGIN_SRC emacs-lisp diff --git a/hosts/pinwheel/modules/emacs/default.nix b/hosts/pinwheel/modules/emacs/default.nix index 43993ee..ce4e1a7 100644 --- a/hosts/pinwheel/modules/emacs/default.nix +++ b/hosts/pinwheel/modules/emacs/default.nix @@ -7,10 +7,23 @@ let alwaysEnsure = true; alwaysTangle = true; + extraEmacsPackages = epkgs: [ epkgs.flymake-go-staticcheck epkgs.tree-sitter-langs epkgs.treesit-grammars.with-all-grammars + + (epkgs.trivialBuild { + pname = "eglot-booster"; + version = "main-2024-04-11"; + + src = pkgs.fetchFromGitHub { + owner = "jdtsmith"; + repo = "eglot-booster"; + rev = "e19dd7ea81bada84c66e8bdd121408d9c0761fe6"; + hash = "sha256-vF34ZoUUj8RENyH9OeKGSPk34G6KXZhEZozQKEcRNhs="; + }; + }) ]; }; @@ -37,6 +50,7 @@ in ec emacs pkgs.wl-clipboard + pkgs.emacs-lsp-booster ]; };