From 7c9c7d48150684b436be13bdded4a2286a667c7b Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.uk>
Date: Tue, 16 Aug 2022 13:07:44 +0100
Subject: [PATCH] fix(nvim): add missing `edit_zsh` function

---
 .../files/lua/opdavies/telescope/init.lua     | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/roles/neovim/files/lua/opdavies/telescope/init.lua b/roles/neovim/files/lua/opdavies/telescope/init.lua
index 8ab34a86..a73c3d47 100644
--- a/roles/neovim/files/lua/opdavies/telescope/init.lua
+++ b/roles/neovim/files/lua/opdavies/telescope/init.lua
@@ -63,6 +63,31 @@ function M.edit_neovim()
   require("telescope.builtin").find_files(opts)
 end
 
+function M.edit_zsh()
+  local opts = {
+    cwd = "~/.config/zsh",
+    path_display = { "shorten" },
+    prompt_title = "~ zsh ~",
+    no_ignore = true,
+
+    layout_strategy = "flex",
+    layout_config = {
+      height = 0.8,
+      prompt_position = "top",
+      width = 0.9,
+
+      horizontal = {
+        width = { padding = 0.15 },
+      },
+      vertical = {
+        preview_height = 0.75,
+      },
+    },
+  }
+
+  require("telescope.builtin").find_files(opts)
+end
+
 function M.file_browser()
   local opts = {
     cwd = vim.fn.expand "%:p:h",