Browse Source

fix(bootstrap): delay lsp setup until LazyDone (#4041)

LostNeophyte 2 years ago
parent
commit
3b16c266d7
1 changed files with 1 additions and 3 deletions
  1. 1 3
      lua/lvim/plugin-loader.lua

+ 1 - 3
lua/lvim/plugin-loader.lua

@@ -39,9 +39,7 @@ function plugin_loader.init(opts)
       }
       }
     end
     end
 
 
-    vim.schedule(function()
-      require("lvim.lsp").setup()
-    end)
+    vim.api.nvim_create_autocmd("User", { pattern = "LazyDone", callback = require("lvim.lsp").setup })
   end
   end
 
 
   vim.opt.runtimepath:append(lazy_install_dir)
   vim.opt.runtimepath:append(lazy_install_dir)