Skip to content

Commit

Permalink
feat: Add Telescope vim plugin for fuzzy-finding
Browse files Browse the repository at this point in the history
  • Loading branch information
vicnett committed Nov 14, 2024
1 parent b1c891c commit 92e6720
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vim/lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
32 changes: 32 additions & 0 deletions vim/lua/plugins/telescope.lua
Original file line number Diff line number Diff line change
@@ -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",
"<leader>ff",
builtin.find_files,
{ desc = "Telescope find files" }
)
vim.keymap.set(
"n",
"<leader>fg",
builtin.live_grep,
{ desc = "Telescope live grep" }
)
vim.keymap.set(
"n",
"<leader>fb",
builtin.buffers,
{ desc = "Telescope buffers" }
)
vim.keymap.set(
"n",
"<leader>fh",
builtin.help_tags,
{ desc = "Telescope help tags" }
)
end,
}

0 comments on commit 92e6720

Please sign in to comment.