add telescope
This commit is contained in:
parent
1984f35182
commit
ff0131d0e6
1 changed files with 27 additions and 0 deletions
27
lua/plugins/telescope.lua
Normal file
27
lua/plugins/telescope.lua
Normal file
|
@ -0,0 +1,27 @@
|
|||
local Plugin = { "nvim-telescope/telescope.nvim" }
|
||||
Plugin.branch = "0.1.x"
|
||||
|
||||
Plugin.dependencies = {
|
||||
{ "nvim-lua/plenary.nvim" },
|
||||
{
|
||||
"nvim-telescope/telescope-fzf-native.nvim",
|
||||
build = "make",
|
||||
enabled = true,
|
||||
},
|
||||
}
|
||||
|
||||
Plugin.cmd = { "Telescope" }
|
||||
|
||||
Plugin.keys = {
|
||||
{ "<leader><space>", "<cmd>Telescope buffers<cr>", desc = "Find buffer" },
|
||||
{ "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find files" },
|
||||
{ "<leader>fg", "<cmd>Telescope git_files<cr>", desc = "Find files in git" },
|
||||
{ "<leader>fp", "<cmd>Telescope live_grep<cr>", desc = "Find text recursively" },
|
||||
{ "<leader>fs", "<cmd>Telescope current_buffer_fuzzy_find<cr>", desc = "Find text in current buffer" },
|
||||
}
|
||||
|
||||
function Plugin.config()
|
||||
require("telescope").load_extension("fzf")
|
||||
end
|
||||
|
||||
return Plugin
|
Loading…
Reference in a new issue