Procházet zdrojové kódy

Implement fzy native to speed up telescope (#330)

* impliment fzy-native

* match pattern
Andrew Fridley před 4 roky
rodič
revize
76e1912b99
2 změnil soubory, kde provedl 7 přidání a 0 odebrání
  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,
             }
         }
+    },
+    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/plenary.nvim", opt = true}
         use {"nvim-telescope/telescope.nvim", opt = true}
+        use {"nvim-telescope/telescope-fzy-native.nvim", opt = true}
 
         -- Debugging
         use {"mfussenegger/nvim-dap", opt = true}