DEV Community

llllvvuu
llllvvuu

Posted on

1

Improving Neovim load time on WSL 2

Recently I decided to duplicate my Neovim setup from MacOS to WSL. On MacOS, I never had any load time issues, but to my shock, on WSL it took 2 seconds to start Neovim and another 2 seconds to lazy load more plugins when opening a file!

The root cause of this is the slow filesystem calls between WSL and the host Windows which affects the search for executables. This can be addressed in 3 areas:

  1. Bypass clipboard.vim search for executables.
  2. Don't add Windows $PATH to WSL $PATH
  3. Deduplicate $PATH (add this to the end of .bashrc/.zshrc)

A nice side effect of these steps is that bash/zsh becomes much faster as well (especially with autocompletion/autosuggest).

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more