-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlsp.lua
More file actions
19 lines (16 loc) · 825 Bytes
/
Copy pathlsp.lua
File metadata and controls
19 lines (16 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
return function()
-- Handler/probe machinery first (no discovery yet): sets up the read
-- trigger the override pass below relies on.
require("completion.mason-lspconfig").setup()
-- Run `user.configs.lsp` with its vim.lsp.config registrations recorded: a
-- mid-session install registers after this point, and the replay keeps the
-- user's overrides on top regardless of timing.
-- `user.configs.lsp-servers.<name>` remains the richer per-server hook.
require("completion.mason-lspconfig").run_user_lsp_overrides()
-- Discovery LAST (Mason-installed / on $PATH / installable / missing,
-- driven by `settings.lsp_deps`): user runtime registrations above must be
-- visible to the unknown/binary classification.
require("completion.mason-lspconfig").resolve_deps()
-- Start LSPs
pcall(vim.cmd.LspStart)
end