From f54cc14a3d0984bbc1efd02a32b4e113d19e0d8e Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 16 Nov 2025 10:25:25 -0800 Subject: fix(docs): handle config errors, document rename #4192 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: If a config throws an error it fails the entire doc generation. Solution: Handle config error in docgen. Unfortunately, this doesn't show the error message, it shows: loop or previous error loading module 'lsp.volar' instead of the actual `error('…')` message. So meanwhile, document the current deprecation/rename pattern and use `vim.notify()` instead. --- lsp/vscoqtop.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lsp') diff --git a/lsp/vscoqtop.lua b/lsp/vscoqtop.lua index 41b38eb4..78186c51 100644 --- a/lsp/vscoqtop.lua +++ b/lsp/vscoqtop.lua @@ -1,6 +1,8 @@ ---@brief --- ---- https://github.com/coq-community/vscoq +--- Renamed to [vsrocq](#vsrocq) + +vim.deprecate('vscoqtop', 'vsrocq', '2.0.0', 'nvim-lspconfig', false) ---@type vim.lsp.Config -error("The 'vscoqtop' config has been renamed to 'vsrocq'.") +return vim.lsp.config.vsrocq -- cgit v1.2.3-70-g09d2