Skip to content

Default setting + frequent :w = use up all the ram and system freeze #89

@amalgame21

Description

@amalgame21

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions