From 69f22bd867480bc9c1eb39a22240e68317c220ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Tue, 9 Aug 2022 16:15:15 +0100 Subject: [PATCH] add nvim-telescope-file-browser --- flake.lock | 17 +++++++++++++++++ flake.nix | 2 ++ vim/default.nix | 9 +++++++++ 3 files changed, 28 insertions(+) diff --git a/flake.lock b/flake.lock index 9fc0243..d72451c 100644 --- a/flake.lock +++ b/flake.lock @@ -698,6 +698,22 @@ "type": "github" } }, + "nvim-telescope-file-browser": { + "flake": false, + "locked": { + "lastModified": 1659376895, + "narHash": "sha256-LYkyvjv6LO39c49s5fjzfdzRVRHrtTI1dweaZMFPLVc=", + "owner": "nvim-telescope", + "repo": "telescope-file-browser.nvim", + "rev": "4272c52078cc457dfaabce6fa3545e7495651d04", + "type": "github" + }, + "original": { + "owner": "nvim-telescope", + "repo": "telescope-file-browser.nvim", + "type": "github" + } + }, "plover": { "flake": false, "locked": { @@ -755,6 +771,7 @@ "nixpkgs": "nixpkgs_6", "nixpkgs-go116": "nixpkgs-go116", "nixpkgs-stable": "nixpkgs-stable", + "nvim-telescope-file-browser": "nvim-telescope-file-browser", "plover": "plover", "plover-machine-hid": "plover-machine-hid", "steno-dictionaries": "steno-dictionaries" diff --git a/flake.nix b/flake.nix index 1067c4c..6e5fdef 100644 --- a/flake.nix +++ b/flake.nix @@ -45,6 +45,8 @@ steno-dictionaries.flake = false; plover-machine-hid.url = "git+https://git.chir.rs/darkkirb/plover-machine-hid"; plover-machine-hid.flake = false; + nvim-telescope-file-browser.url = "github:nvim-telescope/telescope-file-browser.nvim"; + nvim-telescope-file-browser.flake = false; }; outputs = { diff --git a/vim/default.nix b/vim/default.nix index 9fc9f0f..d679257 100644 --- a/vim/default.nix +++ b/vim/default.nix @@ -10,4 +10,13 @@ name = "copilot-cmp"; src = inputs.copilot-cmp; }; + telescope-file-browser-nvim = pkgs.vimUtils.buildVimPlugin { + name = "telescope-file-browser-nvim"; + src = inputs.nvim-telescope-file-browser; + # Get nvim's ShaDa file in a writable location + XDG_DATA_HOME = "/build/tmp"; + + # Needed for executing lua scripts + nativeBuildInputs = with pkgs; [neovim]; + }; }