Skip to content

Commit 1cd3db7

Browse files
committed
feat(tooling): shared discovery-first tool resolver
Add modules.utils.tools — the $PATH → Mason-install → aggregated-warning resolver (M.resolve) shared by LSP, formatters, linters, and DAP, with Mason as an optional backend. Includes the missing-tool collector (reason upgrades, timeout-placeholder retraction, attempted-and-failed vs typo classification), the install hand-off / :ToolsRetry paths (phase-1 $PATH failures stay reachable), per-tick registry/mason-root memoization read live to avoid latching, $MASON read live, and the shared parity-sweep delay. Removes the now-unused utils.register_server.
1 parent 829b7b1 commit 1cd3db7

2 files changed

Lines changed: 1443 additions & 13 deletions

File tree

lua/modules/utils/init.lua

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -269,19 +269,6 @@ function M.get_lsp_capabilities()
269269
)
270270
end
271271

272-
---Setup and enable a language server in one call.
273-
---@param server string @Name of the language server
274-
---@param config? vim.lsp.Config @Optional config to apply
275-
function M.register_server(server, config)
276-
vim.validate("server", server, "string", false)
277-
vim.validate("config", config, "table", true)
278-
279-
if config then
280-
vim.lsp.config(server, config)
281-
end
282-
vim.lsp.enable(server)
283-
end
284-
285272
---Convert number (0/1) to boolean
286273
---@param value number @The value to check
287274
---@return boolean|nil @Returns nil if failed

0 commit comments

Comments
 (0)