ecosse3 / nvim

A non-minimal Neovim config built to work most efficiently with Frontend Development
GNU General Public License v3.0
1.26k stars 110 forks source link

Telescope hanging on grep #64

Closed matthewcm closed 2 years ago

matthewcm commented 2 years ago

Hey.

I am getting huge memory spikes after running builtin.grep_string() or the picker rg.

image Seeing this odd memory spike behaviour after running grep.

Tried to replicate this on a minimal nvim init.lua with only Telescope installed, and saw that Telescope runs fine, so this is a matter of plugin conflict, or some other performance issue. I am running this on a pretty powerful 16Gb laptop.

ecosse3 commented 2 years ago

I guess it can be some problem with your personal PC somehow because for me it works great after fzf-native was made for Telescope. You could try to open an issue directly in telescope repo to figure it out.

Did you run :checkhealth for looking for any possible problems?

Could you check if you are in your working directory via :pwd? I tried to grep import word with over 15000 matches and it works so quickly. If I :cd ~ to my home directory my neovim crashed after 800,000 found results which is huge.

I guess it can be just hardware/telescope issue. Probably it's not much matter of my config.

matthewcm commented 2 years ago

Thanks, i'll try some things out. I've tried on another PC, with 64GB ram, and a very fast CPU and still seeing this issue.

My own NVIM setup of telescope did not have any problem. I've also tried to use fzy-native with the ecovim setup, and still seeing the issue. So I am not too sure, what is really conflicting here.

Maybe i'll start from a simple setup and keep adding things in until i notice the issue. HealthCheck does not seem to provide anything too useful.

matthewcm commented 2 years ago

I found it. Seems to be https://github.com/NvChad/nvim-colorizer.lua The autocommand is attaching to the telescope buffers.

ecosse3 commented 2 years ago

@matthewcm Thanks for looking for that. I'll disable this extensions for telescope buffers and see the results. Will let you know.

ecosse3 commented 2 years ago

@matthewcm Fixed on dev branch. I'll do a release soon so it will be available on master.