diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-03-14 15:47:53 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-03-14 15:47:53 +0200 |
| commit | 5a781bf79564a086367dec77385ca658c6b72b3d (patch) | |
| tree | 80fecb50c87ceb72ae979d255220f06795f9507a /lua/plugins | |
| parent | 0de3d43eb78b5c54e78aa86cafe4e93ae806ad7f (diff) | |
| download | dotfiles-5a781bf79564a086367dec77385ca658c6b72b3d.tar.gz dotfiles-5a781bf79564a086367dec77385ca658c6b72b3d.zip | |
Add function M.find_projects()
Diffstat (limited to 'lua/plugins')
| -rw-r--r-- | lua/plugins/telescope.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 95a5dd6..605cdc3 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -312,6 +312,20 @@ function M.find_scripts() } end +function M.find_projects() + require("telescope.builtin").find_files { + hidden = true, + no_ignore = true, + prompt_title = " Find Projects", + path_display = { "smart" }, + search_dirs = { + "~/src", + }, + layout_strategy = "horizontal", + layout_config = { preview_width = 0.65, width = 0.75 }, + } +end + function M.grep_notes() local opts = {} opts.hidden = false |
