From 60b8d336d7e069fea68785e4b9f1d995b608bc19 Mon Sep 17 00:00:00 2001 From: kalmenn Date: Sun, 17 Dec 2023 18:50:44 +0100 Subject: [PATCH] nvim: added telescope --- .config/nvim/init.lua | 1 + .config/nvim/lazy-lock.json | 5 ++++- .config/nvim/lua/plugins/telescope.lua | 15 +++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .config/nvim/lua/plugins/telescope.lua diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index ee81770..32987ab 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -40,3 +40,4 @@ vim.opt.shiftwidth = 4 vim.opt.fillchars:append({ eob = ' ' }) vim.notify("starting nvim 🏕️") + diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index ec70e64..af0a1af 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -1,4 +1,5 @@ { + "fd": { "branch": "master", "commit": "00b64f3ccbfb832ef744bb42bbdfabaf929b5ee2" }, "lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "230ff118613fa07138ba579b89d13ec2201530b9" }, "nui.nvim": { "branch": "main", "commit": "c9b4de623d19a85b353ff70d2ae9c77143abe69c" }, @@ -6,5 +7,7 @@ "nvim-lspconfig": { "branch": "master", "commit": "e50a8fcd6267cb9b2d2a880dcf3a8ac113b75abc" }, "nvim-treesitter": { "branch": "master", "commit": "25ddfde8d7167d7d81403d6809242439037d2b68" }, "nvim-web-devicons": { "branch": "master", "commit": "a1425903ab52a0a0460622519e827f224e5b4fee" }, - "plenary.nvim": { "branch": "master", "commit": "55d9fe89e33efd26f532ef20223e5f9430c8b0c0" } + "plenary.nvim": { "branch": "master", "commit": "55d9fe89e33efd26f532ef20223e5f9430c8b0c0" }, + "ripgrep": { "branch": "master", "commit": "3f2fe0afee0d1a1eeb3235904cfef4f35c4644dc" }, + "telescope.nvim": { "branch": "0.1.x", "commit": "d90956833d7c27e73c621a61f20b29fdb7122709" } } \ No newline at end of file diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua new file mode 100644 index 0000000..796b7b0 --- /dev/null +++ b/.config/nvim/lua/plugins/telescope.lua @@ -0,0 +1,15 @@ +return { + "nvim-telescope/telescope.nvim", + branch = "0.1.x", + dependencies = { + "BurntSushi/ripgrep", + "nvim-lua/plenary.nvim", + "sharkdp/fd", + "nvim-treesitter/nvim-treesitter", + "nvim-tree/nvim-web-devicons", + }, + keys = { + { "f", "Telescope find_files", desc = "Fuzzy find files with Telescope" }, + { "b", "Telescope buffers", desc = "Fuzzy find open buffers with Telescope" }, + } +}