diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-09-01 10:16:08 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-09-01 10:16:08 +0200 |
| commit | e5716618f750a9f2d8b33f851406a074ed1f1ae3 (patch) | |
| tree | dd9c26293136196f13e2ec823b5e91b77a4f7f29 /lua/plugins/telescope.lua | |
| parent | 8bddd30437663cf9b1b606cae0a5e4d3bdb4421e (diff) | |
| download | dotfiles-e5716618f750a9f2d8b33f851406a074ed1f1ae3.tar.gz dotfiles-e5716618f750a9f2d8b33f851406a074ed1f1ae3.zip | |
Updated find_notes() to also search for scratch notes
Diffstat (limited to 'lua/plugins/telescope.lua')
| -rw-r--r-- | lua/plugins/telescope.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 96dc2ce..d86ab8c 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -315,7 +315,6 @@ function M.find_configs() results_title = 'Config Files', path_display = { 'smart' }, search_dirs = { - '~/.ssh', '~/.vim', '~/.config/nvim', '~/.config/zsh', @@ -336,6 +335,7 @@ function M.find_configs() '~/.gitignore', '~/.editorconfig', '~/.prettierrc.yml', + '~/.ssh', '~/README.md', }, file_ignore_patterns = { @@ -398,14 +398,16 @@ end function M.find_notes() require('telescope.builtin').find_files({ - hidden = false, + hidden = true, + no_ignore = false, prompt_title = ' Find Notes', path_display = { 'smart' }, search_dirs = { '~/documents/notes/private/', '~/documents/notes', + '~/notes/private', + '~/notes', }, - --cwd = "~documents/notes", layout_strategy = 'horizontal', layout_config = { preview_width = 0.65, width = 0.75 }, }) |
