add telescope file manager

This commit is contained in:
RingOfStorms (Joshua Bell) 2024-05-20 14:07:50 -05:00
parent b1d5b77cb3
commit de9f8b74b9
4 changed files with 32 additions and 1 deletions

17
flake.lock generated
View file

@ -66,11 +66,28 @@
"type": "github"
}
},
"nvim_plugin-nvim-telescope/telescope-file-browser.nvim": {
"flake": false,
"locked": {
"lastModified": 1713833296,
"narHash": "sha256-P6WR6AohLALn4aU4vPnoBO7QDoRcfcAj51E0K1ldtwU=",
"owner": "nvim-telescope",
"repo": "telescope-file-browser.nvim",
"rev": "4d5fd21bae12ee6e9a79232e1c377f43c419d0c5",
"type": "github"
},
"original": {
"owner": "nvim-telescope",
"repo": "telescope-file-browser.nvim",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs",
"nvim_plugin-chrisgrieser/nvim-early-retirement": "nvim_plugin-chrisgrieser/nvim-early-retirement",
"nvim_plugin-j-hui/fidget.nvim": "nvim_plugin-j-hui/fidget.nvim",
"nvim_plugin-nvim-telescope/telescope-file-browser.nvim": "nvim_plugin-nvim-telescope/telescope-file-browser.nvim",
"rust-overlay": "rust-overlay"
}
},

View file

@ -21,7 +21,10 @@
url = "github:j-hui/fidget.nvim";
flake = false;
};
"nvim_plugin-nvim-telescope/telescope-file-browser.nvim" = {
url = "github:nvim-telescope/telescope-file-browser.nvim";
flake = false;
};
};
outputs =
{ self, nixpkgs, ... }@inputs:

View file

@ -0,0 +1,11 @@
return {
"nvim-telescope/telescope-file-browser.nvim",
dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" },
config = function()
require("telescope").load_extension("file_browser")
end,
keys = {
{ "<leader>fp", "<cmd>Telescope file_browser<cr>", desc = "Open telescope file browser" },
{ "<leader>fl", "<cmd>Telescope file_browser path=%:p:h select_buffer=true<cr>", desc = "Open telescope file browser at current buffer" },
},
}