diff options
author | HampusM <hampus@hampusmat.com> | 2024-06-08 22:24:35 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-06-08 22:24:35 +0200 |
commit | 11b08c9c012e1cd46ac08a229a5298af28b8a489 (patch) | |
tree | 2e736bfabab9e0c38f6e62fa37d5d044a2110f09 /lua | |
parent | 3945397198a611347a89cb8635d0a9551a8e98a9 (diff) |
use telescope file browser
Diffstat (limited to 'lua')
-rw-r--r-- | lua/maps/find.lua | 7 | ||||
-rw-r--r-- | lua/plugins.lua | 10 | ||||
-rw-r--r-- | lua/telescope_config.lua | 13 |
3 files changed, 28 insertions, 2 deletions
diff --git a/lua/maps/find.lua b/lua/maps/find.lua index aad0e46..67b8239 100644 --- a/lua/maps/find.lua +++ b/lua/maps/find.lua @@ -26,3 +26,10 @@ vim.api.nvim_set_keymap( { silent = true, noremap = true } ) +vim.api.nvim_set_keymap( + "n", + "<leader>e", + ":Telescope file_browser<CR>", + { silent = true, noremap = true } +) + diff --git a/lua/plugins.lua b/lua/plugins.lua index 82801e1..8a36e7c 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -103,6 +103,16 @@ return require("packer").startup(function(use) cmake --build build --config Release && \ cmake --install build --prefix build" } + + use { + "nvim-telescope/telescope-file-browser.nvim", + requires = { + { + "nvim-lua/plenary.nvim", + commit = "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" + } + } + } -- Telescope end -- Markdown diff --git a/lua/telescope_config.lua b/lua/telescope_config.lua index 391c38d..fa46f62 100644 --- a/lua/telescope_config.lua +++ b/lua/telescope_config.lua @@ -1,2 +1,11 @@ -require('telescope').setup({}) -require('telescope').load_extension('fzf') +require("telescope").setup({ + extensions = { + file_browser = { + grouped = true + } + } +}) + +require('telescope').load_extension("fzf") +require('telescope').load_extension("file_browser") + |