fix: telescope ignore patterns

".git" is a regex, so because of the '.' it matches more than just
the .git directory, so escape the dot to make it literal. Here, that's
done with a '%'.
This commit is contained in:
Christoph Koehler 2025-04-05 22:45:25 -06:00
parent 0fc84ed868
commit edbadf5d5a
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View file

@ -316,6 +316,7 @@
- Fix oil config referencing snacks
- Add [flash.nvim] plugin to `vim.utility.motion.flash-nvim`
- Fix default telescope ignore list entry for '.git/' to properly match
[rrvsh](https://github.com/rrvsh):

View file

@ -117,7 +117,7 @@
file_ignore_patterns = mkOption {
description = "A table of lua regex that define the files that should be ignored.";
type = listOf str;
default = ["node_modules" ".git/" "dist/" "build/" "target/" "result/"];
default = ["node_modules" "%.git/" "dist/" "build/" "target/" "result/"];
};
color_devicons = mkOption {
description = "Boolean if devicons should be enabled or not.";