فهرست منبع

Implement fzy native to speed up telescope (#330)

* impliment fzy-native

* match pattern
Andrew Fridley 4 سال پیش
والد
کامیت
76e1912b99
2فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 6 0
      lua/lv-telescope/init.lua
  2. 1 0
      lua/plugins.lua

+ 6 - 0
lua/lv-telescope/init.lua

@@ -61,5 +61,11 @@ require('telescope').setup {
                 -- ["<C-i>"] = my_cool_custom_action,
                 -- ["<C-i>"] = my_cool_custom_action,
             }
             }
         }
         }
+    },
+    extensions = {
+        fzy_native = {
+            override_generic_sorter = false,
+            override_file_sorter = true,
+        }
     }
     }
 }
 }

+ 1 - 0
lua/plugins.lua

@@ -44,6 +44,7 @@ return require("packer").startup(
         use {"nvim-lua/popup.nvim", opt = true}
         use {"nvim-lua/popup.nvim", opt = true}
         use {"nvim-lua/plenary.nvim", opt = true}
         use {"nvim-lua/plenary.nvim", opt = true}
         use {"nvim-telescope/telescope.nvim", opt = true}
         use {"nvim-telescope/telescope.nvim", opt = true}
+        use {"nvim-telescope/telescope-fzy-native.nvim", opt = true}
 
 
         -- Debugging
         -- Debugging
         use {"mfussenegger/nvim-dap", opt = true}
         use {"mfussenegger/nvim-dap", opt = true}