-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Description
From the youtube video https://y.com.sb/watch?v=stqUbv-5u2s, I notice this project exist.
So I want to test it out and replace my old init.vim and explore more about lua.
However, while playing around with the init.lua, my system freeze.
Below is how to reproduce it:
Running nvim ~/.config/nvim/init.lua with default setting.
in htop it will display it spawn a process lua-language-server
when I press :w Enter, one more lua-language-server spawn, and use up maybe more 2% of ram.
when I do the :w Enter again, and use more 2% of ram. and so on
However I just have a bad habit to frequently save the files.
When I do :w too frequently, say 1 sec once for 15 sec
The ram usage surge rapidly, which is much more than 2% per :w mentioned above
and my system freeze.
And I later find out that it is caused by "Automatically source and re-compile packer whenever you save this init.lua" setting.
Just simply do a :wq also help release the ram.
Since this script may target new user of neovim as stated in the video
I think it worth mentioning in the readme file.