From defe57957ae299968721379b13b265ff4d0c28ea Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 6 Aug 2022 20:33:56 +0200 Subject: [PATCH] switch to nil for Nix LSP --- users/max/home/editor/default.nix | 2 +- users/max/home/editor/languages.nix | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/users/max/home/editor/default.nix b/users/max/home/editor/default.nix index d4458f4..ac26ce3 100644 --- a/users/max/home/editor/default.nix +++ b/users/max/home/editor/default.nix @@ -18,7 +18,7 @@ let }; }; }; - languages = import ./languages.nix pkgs; + languages = import ./languages.nix { inherit pkgs inputs; }; theme = import ./theme.nix; }; diff --git a/users/max/home/editor/languages.nix b/users/max/home/editor/languages.nix index 7465403..cfef866 100644 --- a/users/max/home/editor/languages.nix +++ b/users/max/home/editor/languages.nix @@ -1,4 +1,4 @@ -pkgs: { +{ pkgs, inputs }: { language = with pkgs; [ { language-server = {command = "${rust-analyzer}/bin/rust-analyer";}; @@ -21,7 +21,7 @@ pkgs: { name = "python"; } { - language-server = {command = "${rnix-lsp}/bin/rnix-lsp";}; + language-server = {command = "${inputs.nil.packages.${pkgs.system}.nil}/bin/nil";}; name = "nix"; } {