From 903d3278e0576555080d40a8f8b25d49a1d5c68e Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Tue, 1 Nov 2022 16:09:17 +0100 Subject: [PATCH] feat(nvim): add dir-telescope plugin --- nvim/after/plugin/telescope.lua | 3 +++ nvim/lua/kogakure/plugins.lua | 1 + 2 files changed, 4 insertions(+) diff --git a/nvim/after/plugin/telescope.lua b/nvim/after/plugin/telescope.lua index af2bab2..d6843e1 100644 --- a/nvim/after/plugin/telescope.lua +++ b/nvim/after/plugin/telescope.lua @@ -21,6 +21,7 @@ telescope.load_extension("projects") telescope.load_extension("heading") telescope.load_extension("gh") telescope.load_extension("git_worktree") +telescope.load_extension("dir") -- Keymaps keymap("n", "", [[Telescope find_files]], opts) @@ -33,6 +34,8 @@ keymap("n", "bm", [[Telescope bookmarks]], opts) keymap("n", "f", [[Telescope current_buffer_fuzzy_find]], opts) keymap("n", "fa", [[Telescope find_files hidden=true]], opts) keymap("n", "fb", [[Telescope file_browser]], opts) +keymap("n", "fd", [[Telescope dir live_grep]], opts) +keymap("n", "ff", [[Telescope dir find_files]], opts) keymap("n", "gb", [[Telescope git_branches]], opts) keymap("n", "gs", [[Telescope git_status]], opts) keymap("n", "gwc", [[Telescope git_worktree create_git_worktree]], opts) diff --git a/nvim/lua/kogakure/plugins.lua b/nvim/lua/kogakure/plugins.lua index 519cdc5..80f8549 100644 --- a/nvim/lua/kogakure/plugins.lua +++ b/nvim/lua/kogakure/plugins.lua @@ -96,6 +96,7 @@ return packer.startup(function(use) use({ "nvim-telescope/telescope-frecency.nvim", requires = { "tami5/sqlite.lua" } }) -- Frequency and recency use("nvim-telescope/telescope-github.nvim") -- GitHub CLI use("nvim-telescope/telescope-symbols.nvim") -- Symbols + use("princejoogie/dir-telescope.nvim") -- Perform functions in selected directory -- Treesitter use({ "nvim-treesitter/nvim-treesitter", run = ":TSUpdate" })