new telescope functionality and using fzf

This commit is contained in:
hollorol
2025-03-09 21:11:25 +01:00
parent d503e3e346
commit 818850fd22
3 changed files with 141 additions and 15 deletions
+28 -14
View File
@@ -1,19 +1,33 @@
return {
'nvim-telescope/telescope.nvim', tag = '0.1.8',
-- or , branch = '0.1.x',
dependencies = { 'nvim-lua/plenary.nvim' },
config = function()
require('telescope').setup{
{
-- Main Telescope plugin
"nvim-telescope/telescope.nvim",
version = "0.1.8", -- or branch = '0.1.x'
dependencies = {
"nvim-lua/plenary.nvim",
{
-- FZF native plugin for better fuzzy matching
"nvim-telescope/telescope-fzf-native.nvim",
build = "make", -- Lazy will run `make` when installing/updating
-- If you want to ensure 'make' is available, you can do:
-- cond = function()
-- return vim.fn.executable("make") == 1
-- end,
},
},
cmd = "Telescope", -- load only when calling Telescope
config = function()
require("telescope").setup({
defaults = {
mappings = {
i = {
["<esc>"] = require('telescope.actions').close
}
}
}
}
["<esc>"] = require("telescope.actions").close,
},
},
},
})
-- After setup, load the FZF extension (it must be built successfully first)
require("telescope").load_extension("fzf")
end,
cmd = 'Telescope'
}
},
}