Skip to content

Commit 6057736

Browse files
committed
fixup(#1466): load lsp config with proper event.
1 parent 2e3d87f commit 6057736

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

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

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

9594
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 = { "CursorHold", "CursorHoldI" },
6+
event = { "BufReadPre", "BufNewFile" },
77
config = require("completion.lsp"),
88
dependencies = {
99
{ "mason-org/mason.nvim" },

0 commit comments

Comments
 (0)