diff --git a/dots/.config/nvim/lua/plugins/configs/telescope.lua b/dots/.config/nvim/lua/plugins/configs/telescope.lua index 603051af..8b045a88 100644 --- a/dots/.config/nvim/lua/plugins/configs/telescope.lua +++ b/dots/.config/nvim/lua/plugins/configs/telescope.lua @@ -1,3 +1,5 @@ +local config_home = vim.env.XDG_CONFIG_HOME or vim.env.HOME .. "/.config" + return { { "nvim-telescope/telescope.nvim", @@ -34,10 +36,21 @@ return { { "tq", ":Telescope quickfixhistry", desc = "LSP: Telescope Quickfix History" }, { "nv", ":Telescope notify", desc = "Notifications: Search" }, { "tt", ":Telescope", desc = "Telescope: Open Telescope" }, + { + "tz", + function() + local z_lua_path = config_home .. "/zsh/config/plugins/z.lua/z.lua" + require("telescope").extensions.z.list({ + cmd = { "lua", z_lua_path, "-l" } + }) + end, + desc = "Telescope: Z" + }, }, dependencies = { "artart222/telescope_find_directories", "nvim-telescope/telescope-ui-select.nvim", + "nvim-telescope/telescope-z.nvim", { "nvim-telescope/telescope-frecency.nvim", cmd = { @@ -164,6 +177,7 @@ return { telescope.load_extension("smart_history") telescope.load_extension("undo") telescope.load_extension("frecency") + telescope.load_extension("z") end, }, }