diff options
| author | srdusr <trevorgray@srdusr.com> | 2022-11-12 23:49:12 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2022-11-12 23:49:12 +0200 |
| commit | e717d3ebccb73afd2bddfce4c60b4d5fb82f184c (patch) | |
| tree | 96abf0338ebf4c13d74fef3b7d68b4489738ab8f | |
| parent | e5c034152cbefaa90f2850ce551ac94e806bb78e (diff) | |
| download | dotfiles-e717d3ebccb73afd2bddfce4c60b4d5fb82f184c.tar.gz dotfiles-e717d3ebccb73afd2bddfce4c60b4d5fb82f184c.zip | |
Added file ignore patterns to function find_configs
| -rw-r--r-- | lua/plugins/telescope.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 1133917..3c6eef8 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -284,7 +284,7 @@ telescope.load_extension("ui-select") function M.find_configs() require("telescope.builtin").find_files { hidden = true, - --no_ignore = true, + no_ignore = false, prompt_title = " Find Configs", results_title = "Config Files", path_display = { "smart" }, @@ -298,9 +298,12 @@ function M.find_configs() -- cwd = "~/.config/nvim/", file_ignore_patterns = { "~/.config/nvim/startup.log", - "~/.config/nvim/plugin/packer_compiled.lua", - "~/.config/tmux/resurrect/", - "~/.config/tmux/plugins/", + "packer_compiled.lua", + "resurrect", + "tmux/plugins", + --"^~/.config/tmux/plugins", + "%.txt", + ".git", }, layout_strategy = "horizontal", layout_config = { preview_width = 0.65, width = 0.75 }, |
