diff --git a/vim/lazy-lock.json b/vim/lazy-lock.json index 3d97b6a..64366fd 100644 --- a/vim/lazy-lock.json +++ b/vim/lazy-lock.json @@ -11,8 +11,10 @@ "nvim-treesitter": { "branch": "master", "commit": "e1e3108cd23d7f967842261bd66126b6734d8907" }, "nvim-treesitter-context": { "branch": "master", "commit": "158377d700596367a91ea41818f76abdbf75a232" }, "nvim-web-devicons": { "branch": "master", "commit": "19d257cf889f79f4022163c3fbb5e08639077bd8" }, + "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, "rainbow-delimiters.nvim": { "branch": "master", "commit": "f22496dfdd46da4d571f5254c72eff65ff5a1c27" }, "render-markdown.nvim": { "branch": "main", "commit": "82184c4a3c3580a7a859b2cb7e58f16c10fd29ef" }, + "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, "ts-comments.nvim": { "branch": "main", "commit": "2002692ad1d3f6518d016550c20c2a890f0cbf0e" }, "vim-easy-align": { "branch": "master", "commit": "9815a55dbcd817784458df7a18acacc6f82b1241" }, "vim-fugitive": { "branch": "master", "commit": "d4877e54cef67f5af4f950935b1ade19ed6b7370" }, diff --git a/vim/lua/plugins/telescope.lua b/vim/lua/plugins/telescope.lua new file mode 100644 index 0000000..213b6b3 --- /dev/null +++ b/vim/lua/plugins/telescope.lua @@ -0,0 +1,32 @@ +return { + "nvim-telescope/telescope.nvim", + tag = "0.1.8", + dependencies = { "nvim-lua/plenary.nvim" }, + config = function() + local builtin = require("telescope.builtin") + vim.keymap.set( + "n", + "ff", + builtin.find_files, + { desc = "Telescope find files" } + ) + vim.keymap.set( + "n", + "fg", + builtin.live_grep, + { desc = "Telescope live grep" } + ) + vim.keymap.set( + "n", + "fb", + builtin.buffers, + { desc = "Telescope buffers" } + ) + vim.keymap.set( + "n", + "fh", + builtin.help_tags, + { desc = "Telescope help tags" } + ) + end, +}