From 3d0035b92221f0d8c2c131fd0e7c4a3a0501ee30 Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 22 Nov 2023 23:59:39 +0200 Subject: New function find_private() --- lua/plugins/telescope.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index e4c62c2..2ba1195 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -404,6 +404,19 @@ function M.find_notes() search_dirs = { '~/documents/notes/private/', '~/documents/notes', + }, + layout_strategy = 'horizontal', + layout_config = { preview_width = 0.65, width = 0.75 }, + }) +end + +function M.find_private() + require('telescope.builtin').find_files({ + hidden = true, + no_ignore = false, + prompt_title = ' Find Notes', + path_display = { 'smart' }, + search_dirs = { '~/notes/private', '~/notes', }, -- cgit v1.2.3