Skip to content

Commit bc83c1c

Browse files
committed
Revert "fixup(#1466): load lsp config with proper event. (#1472)"
This reverts commit 53eeeec.
1 parent bb3fcdd commit bc83c1c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

lua/modules/configs/completion/mason-lspconfig.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ please REMOVE your LSP configuration (rust_analyzer.lua) from the `servers` dire
8989
{ title = "nvim-lspconfig" }
9090
)
9191
end
92+
return
9293
end
9394

9495
for _, lsp in ipairs(lsp_deps) do

lua/modules/plugins/completion.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ local use_copilot = require("core.settings").use_copilot
33

44
completion["neovim/nvim-lspconfig"] = {
55
lazy = true,
6-
event = { "BufReadPre", "BufNewFile" },
6+
event = { "CursorHold", "CursorHoldI" },
77
config = require("completion.lsp"),
88
dependencies = {
99
{ "mason-org/mason.nvim" },

0 commit comments

Comments
 (0)