Yggdroot / LeaderF

An efficient fuzzy finder that helps to locate files, buffers, mrus, gtags, etc. on the fly for both vim and neovim.
Apache License 2.0
2.14k stars 180 forks source link

Leaderf rg freezes the whole UI #623

Closed jm33-m0 closed 4 years ago

jm33-m0 commented 4 years ago

My vim environment can be found in #616 (macvim 8.2, run in iterm2)

rg runs fine when executed directly, giving result without noticeable delay

image

Steps to reproduce:

  1. Open a file under a git project
  2. Run Leaderf rg to search text
  3. Type something to search

vim becomes unresponsive and its CPU usage rises to 100%

jm33-m0 commented 4 years ago

The project I tested: https://github.com/jm33-m0/emp3r0r

Yggdroot commented 4 years ago

maybe it's the same as #318 .

jm33-m0 commented 4 years ago

Thanks, adding

 let g:Lf_RgConfig = [
    \ "--max-columns=150",
    \ "--glob=!node_modules/*",
    \ "--glob=!dist/*",]

solves this issue