From 3c5a98650705c0885d8bb32f6211e30ca33611aa Mon Sep 17 00:00:00 2001 From: buffet Date: Wed, 11 Jan 2023 16:55:23 +0100 Subject: [PATCH] fix: update rust-tools to make it play nice with ra --- flake.lock | 19 ++++++++++++++++++- flake.nix | 6 ++++++ programs/nvim.nix | 1 + 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index 514c338..3945d8b 100644 --- a/flake.lock +++ b/flake.lock @@ -128,7 +128,24 @@ "home-manager": "home-manager", "impermanence": "impermanence", "nixpkgs": "nixpkgs", - "nur": "nur" + "nur": "nur", + "rust-tools-nvim": "rust-tools-nvim" + } + }, + "rust-tools-nvim": { + "flake": false, + "locked": { + "lastModified": 1673136837, + "narHash": "sha256-+/kK6MU2EiSBFbfqQJwLkJICXZpf8oiShbcvsls3V8A=", + "owner": "simrat39", + "repo": "rust-tools.nvim", + "rev": "df584e84393ef255f5b8cbd709677d6a3a5bf42f", + "type": "github" + }, + "original": { + "owner": "simrat39", + "repo": "rust-tools.nvim", + "type": "github" } }, "utils": { diff --git a/flake.nix b/flake.nix index 9e68ce4..f3088c8 100644 --- a/flake.nix +++ b/flake.nix @@ -23,6 +23,12 @@ url = "github:nix-community/home-manager/release-22.11"; inputs.nixpkgs.follows = "nixpkgs"; }; + + # work around for nixpkgs version being too old + rust-tools-nvim = { + url = "github:simrat39/rust-tools.nvim"; + flake = false; + }; }; outputs = {nixpkgs, ...} @ args: { diff --git a/programs/nvim.nix b/programs/nvim.nix index d4d3f2f..d6c3fbc 100644 --- a/programs/nvim.nix +++ b/programs/nvim.nix @@ -23,6 +23,7 @@ plugins = buildPlugins [ "cmp-conventionalcommits" "cmp-git" + "rust-tools-nvim" ]; in with pkgs.vimPlugins;