Explorar el Código

nixpkgs/neovim: deduplicate telescope git_files

Thomas Dy hace 5 meses
padre
commit
5f2e82f605
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  1. 13 0
      .config/nixpkgs/neovim/config/lua/user/plugins/telescope.lua

+ 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,
     },