nvim-lua / kickstart.nvim

A launch point for your personal nvim configuration
MIT License
18.86k stars 21.57k forks source link

Can't adjust `concurrency` value for lazy.nvim #1125

Closed iharkatkavets closed 4 weeks ago

iharkatkavets commented 4 weeks ago

Describe the bug

I want to adjust the number of simultaneous plugin clone operations in lazy vim. I add next line

...
require('lazy').setup({
  concurrency = 4, -- this line
...

but nothing happened, lazynvim still creates large number of simultaneous clone operations. This parameter works if I set it in ~/.config/nvim/lua/config/lazy.lua I used this repo

To Reproduce

Add the line below and run LazyVim. Check how many simultaneous operations are running. It's not equal to the parameter value

...
require('lazy').setup({
  concurrency = 4, -- this line
...

Desktop

Neovim Version

NVIM v0.11.0-dev-700+gbcae8be91                                                                                                                                                                                       
Build type: Debug                                                                                                                                                                                                     
LuaJIT 2.1.1724512491                                                                                                                                                                                                 
Run ":verbose version" for more info                                                                                                                                                                                  
Press ENTER or type command to continue 
iharkatkavets commented 4 weeks ago

I got it. I have to put this config at the end of file, at section

...
}, {
  concurrency = 1, -- < here
  ui = {
    -- If you are using a Nerd Font: set icons to an empty table which will use the
    -- default lazy.nvim defined Nerd Font icons, otherwise define a unicode icons table
    icons = vim.g.have_nerd_font and {} or {
      cmd = '⌘',
      config = 'πŸ› ',
      event = 'πŸ“…',
      ft = 'πŸ“‚',
      init = 'βš™',
      keys = 'πŸ—',
      plugin = 'πŸ”Œ',
      runtime = 'πŸ’»',
      require = 'πŸŒ™',
      source = 'πŸ“„',
      start = 'πŸš€',
      task = 'πŸ“Œ',
      lazy = 'πŸ’€ ',
    },
  },
})