Sfoglia il codice sorgente

nixpkgs/neovim: deduplicate telescope git_files

Thomas Dy 5 mesi fa
parent
commit
5f2e82f605

+ 13 - 0
.config/nixpkgs/neovim/config/lua/user/plugins/telescope.lua

@@ -96,6 +96,19 @@ telescope.setup({
     find_files = {
       find_command = { 'fd', '--type', 'f', '--strip-cwd-prefix' }
     },
+    git_files = {
+      -- add --deduplicate so files with merge conflicts don't show up multiple
+      -- times
+      git_command = {
+        'git',
+        '-c',
+        'core.quotePath=false',
+        'ls-files',
+        '--exclude-standard',
+        '--cached',
+        '--deduplicate',
+      }
+    },
     git_commits = {
       mappings = commit_mappings,
     },