mattn / mattn/vim-lsp-settings

Very slow startup time

Open
#633 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
1.4k
Forks
245
Avg merge
3m
Merged PRs (30d)
1

Description

Hello, I noticed my vim started taking a very long time to start recently. After profiling with vim --startuptime, turns out vim-lsp-settings takes a full two seconds to initialize!

2074.801  2044.153  2042.883: sourcing /home/login/.vim/bundle/vim-lsp-settings/plugin/lsp_settings.vim

Unfortunately, the file isn't very detailed and I'm not sure what other files I could provide.

  • The full startup file: vim startup time
  • My .vimrc configuration: .vimrc (I have no .vim-lsp-settings config dir)

It may be worth noting that I'm using NixOS, and that part of the files are stored in an AFS (file server), however it wasn't as slow as that before. Is there any way to have more details over what's taking time?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the vim --startuptime output and the plugin entry point plugin/lsp_settings.vim; compare its startup work with the linked .vimrc and the absence of a .vim-lsp-settings directory. Identify what accounts for the reported two-second delay, then verify the change by rerunning vim --startuptime in a comparable setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.