Update telescope_ignore_patterns
This commit is contained in:
parent
3cfe6444c6
commit
6dd83e51eb
|
@ -4,6 +4,7 @@
|
|||
|
||||
### Changed
|
||||
|
||||
* Updated Telescope to ignore more files and directories by default.
|
||||
* Replace `christoomey/vim-tmux-navigator` with `alexghergh/nvim-tmux-navigation`.
|
||||
|
||||
## 26th February 2024
|
||||
|
|
|
@ -97,14 +97,6 @@ function M.file_browser()
|
|||
require("telescope").extensions.file_browser.file_browser(opts)
|
||||
end
|
||||
|
||||
function M.find_files()
|
||||
local opts = {
|
||||
file_ignore_patterns = { ".git/", "**/{core,contrib}", "vendor" },
|
||||
}
|
||||
|
||||
require("telescope.builtin").find_files(opts)
|
||||
end
|
||||
|
||||
function M.find_all_files()
|
||||
local opts = {
|
||||
no_ignore = true,
|
||||
|
@ -116,7 +108,6 @@ end
|
|||
|
||||
function M.git_files()
|
||||
local opts = {
|
||||
file_ignore_patterns = { ".git/", "**/{core,contrib}", "vendor" },
|
||||
hidden = true,
|
||||
no_ignore = true,
|
||||
}
|
||||
|
|
|
@ -33,14 +33,24 @@ local lga_actions = require "telescope-live-grep-args.actions"
|
|||
telescope.setup {
|
||||
defaults = {
|
||||
buffer_previewer_maker = new_maker,
|
||||
file_ignore_patterns = { ".direnv/", ".git/" },
|
||||
layout_config = {
|
||||
prompt_position = "top",
|
||||
|
||||
file_ignore_patterns = {
|
||||
"%/contrib",
|
||||
"%/core",
|
||||
"%/libraries",
|
||||
".direnv",
|
||||
".git/",
|
||||
"composer.json.save",
|
||||
"composer.lock",
|
||||
"flake.lock",
|
||||
"node_modules",
|
||||
"package-lock.json",
|
||||
"pnpm-lock.yaml",
|
||||
"vendor",
|
||||
"yarn.lock",
|
||||
},
|
||||
|
||||
preview = {
|
||||
hide_on_startup = true,
|
||||
},
|
||||
layout_config = { prompt_position = "top" },
|
||||
|
||||
mappings = {
|
||||
i = {
|
||||
|
@ -53,6 +63,7 @@ telescope.setup {
|
|||
|
||||
no_ignore = true,
|
||||
path_display = { truncate = 1 },
|
||||
preview = { hide_on_startup = true },
|
||||
prompt_prefix = "$ ",
|
||||
sorting_strategy = "ascending",
|
||||
},
|
||||
|
|
Reference in a new issue