add telescope file manager
This commit is contained in:
parent
b1d5b77cb3
commit
de9f8b74b9
4 changed files with 32 additions and 1 deletions
17
flake.lock
generated
17
flake.lock
generated
|
@ -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"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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:
|
||||
|
|
11
lua/plugins/files_telescope.lua
Normal file
11
lua/plugins/files_telescope.lua
Normal 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" },
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue