From 3a5ab74f0001e25e9ff9e072296a7f49d2be7e16 Mon Sep 17 00:00:00 2001 From: pfych Date: Wed, 26 Feb 2025 14:46:50 +1100 Subject: [PATCH] Added telescope --- .config/nvim/lazy-lock.json | 1 + .config/nvim/lua/plugins/telescope.lua | 5 +++++ .config/nvim/lua/plugins/which-key.lua | 4 +++- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .config/nvim/lua/plugins/telescope.lua diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index ae54d08..7244810 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -11,5 +11,6 @@ "nvim-lspconfig": { "branch": "master", "commit": "99c75820f2606b6b446cad7c75ec2ef7ee8a1317" }, "nvim-web-devicons": { "branch": "master", "commit": "1020869742ecb191f260818234517f4a1515cfe8" }, "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, + "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, "which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" } } diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua new file mode 100644 index 0000000..ac32fa7 --- /dev/null +++ b/.config/nvim/lua/plugins/telescope.lua @@ -0,0 +1,5 @@ +return { + "nvim-telescope/telescope.nvim", + tag = "0.1.8", + dependencies = { "nvim-lua/plenary.nvim" } +} diff --git a/.config/nvim/lua/plugins/which-key.lua b/.config/nvim/lua/plugins/which-key.lua index d2a9caa..dd01f41 100644 --- a/.config/nvim/lua/plugins/which-key.lua +++ b/.config/nvim/lua/plugins/which-key.lua @@ -3,7 +3,9 @@ return { event = "VeryLazy", opts = {}, keys = { - { "f", "Neotree", desc = "Open Neotree" }, + { "d", "Neotree", desc = "Open Neotree" }, + { "f", ":Telescope find_files", desc = "Search for files" }, + { "s", ":Telescope live_grep", desc = "Search file content (requires ripgrep)" }, { ">", ":lua vim.diagnostic.goto_next()", desc = "Jump to next issue" }, { "<", ":lua vim.diagnostic.goto_prev()", desc = "Jump to prev issue" }, },