aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins/telescope.lua
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-11-22 23:59:39 +0200
committersrdusr <trevorgray@srdusr.com>2023-11-22 23:59:39 +0200
commit3d0035b92221f0d8c2c131fd0e7c4a3a0501ee30 (patch)
treec5da979917f22a418cf3e9466f152ce8d63b4563 /lua/plugins/telescope.lua
parent95b766869be7958967d8cab3463753970168ae33 (diff)
downloaddotfiles-3d0035b92221f0d8c2c131fd0e7c4a3a0501ee30.tar.gz
dotfiles-3d0035b92221f0d8c2c131fd0e7c4a3a0501ee30.zip
New function find_private()
Diffstat (limited to 'lua/plugins/telescope.lua')
-rw-r--r--lua/plugins/telescope.lua13
1 files changed, 13 insertions, 0 deletions
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',
},