Lsp with neovim keeps crashing

If you are experiencing crashes with Lsp in Neovim, there are several ways to solve this issue. In this article, we will explore three different solutions to help you resolve the problem.

Solution 1: Update Lsp and Neovim

The first step is to ensure that you are using the latest versions of Lsp and Neovim. Outdated software can often cause crashes and instability. To update Lsp, you can use the following Julia code:


using Pkg
Pkg.update("Lsp")

To update Neovim, you can use the following command in your terminal:


brew update
brew upgrade neovim

After updating both Lsp and Neovim, restart your Neovim session and check if the crashes still occur.

Solution 2: Disable Problematic Plugins

Some plugins may conflict with Lsp and cause crashes. To identify the problematic plugins, you can disable them one by one and test if the crashes persist. To disable a plugin, you can comment out or remove its configuration from your Neovim configuration file.

Once you have identified the problematic plugin, you can either find an alternative plugin or reach out to the plugin’s developer for support.

Solution 3: Increase Memory Limits

In some cases, Lsp crashes can be caused by insufficient memory limits. You can try increasing the memory limits for Neovim to see if it resolves the issue. To do this, add the following line to your Neovim configuration file:


set memory=500m

This will increase the memory limit for Neovim to 500 megabytes. You can adjust the value as needed.

After making the changes, restart Neovim and check if the crashes still occur.

Out of the three options, the best solution depends on the specific cause of the crashes. If the crashes are due to outdated software, Solution 1 is recommended. If the crashes are caused by conflicting plugins, Solution 2 is the way to go. If the crashes are related to memory limits, Solution 3 should be implemented.

Rate this post

Leave a Reply

Your email address will not be published. Required fields are marked *

Table of Contents