Skip to content

Files

Latest commit

0d24a46 · Apr 15, 2024

History

History
58 lines (46 loc) · 1.59 KB

README.md

File metadata and controls

58 lines (46 loc) · 1.59 KB

A flake for emacs-lsp-booster

A nix flake for installing emacs-lsp-booster.

Installation

Add the input to your flake inputs, and enable the overlay:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/«version»";
    emacs-lsp-booster.url = "github:slotThe/emacs-lsp-booster-flake";
    # The emacs-lsp-booster flake itself depends on `nixpkgs`; you
    # might want to make this input follow the one in your
    # configuration.
    #
    # emacs-lsp-booster.inputs.nixpkgs.follows = "nixpkgs";
  };
  outputs = { emacs-lsp-booster, ...}:
    let my-overlays = {
          nixpkgs.overlays = [
            «other-overlays»
            emacs-lsp-booster.overlays.default
          ];
        };
    in {
      nixosConfigurations.«hostname» = nixpkgs.lib.nixosSystem rec {
        system = «system»;
        modules = [
          «other-modules»
          my-overlays
        ];
      };
    };
}

You can then access the package as nixpkgs.emacs-lsp-booster, e.g., by putting something like

environment.systemPackages = [ pkgs.emacs-lsp-booster ];

into your configuration.nix.

Important: You will still have to configure Emacs to use emacs-lsp-booster for deserialisation, see here.

TODOs

Any help/additional input is appreciated!

  • Should we add an option to automatically insert the necessary lsp-mode configuration into the user's Emacs file?

    • As a corollary: if we decide to do the above, we should also include eglot support.