summaryrefslogtreecommitdiff
path: root/lua/lvim
diff options
context:
space:
mode:
authorLostNeophyte <[email protected]>2023-04-15 13:46:06 +0200
committerGitHub <[email protected]>2023-04-15 13:46:06 +0200
commit3b16c266d7ecfbe3778d97b917fa5bfa8ab2f578 (patch)
tree7fccb5b20cc55ba23785bc9c718bd904dd2481f0 /lua/lvim
parent6544837f42c1934a16e659bee352e3ac554c2fe0 (diff)
fix(bootstrap): delay lsp setup until LazyDone (#4041)
Diffstat (limited to 'lua/lvim')
-rw-r--r--lua/lvim/plugin-loader.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/lua/lvim/plugin-loader.lua b/lua/lvim/plugin-loader.lua
index f389116e..ddb6c179 100644
--- a/lua/lvim/plugin-loader.lua
+++ b/lua/lvim/plugin-loader.lua
@@ -39,9 +39,7 @@ function plugin_loader.init(opts)
}
end
- vim.schedule(function()
- require("lvim.lsp").setup()
- end)
+ vim.api.nvim_create_autocmd("User", { pattern = "LazyDone", callback = require("lvim.lsp").setup })
end
vim.opt.runtimepath:append(lazy_install_dir)