diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2025-11-16 10:25:25 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-16 10:25:25 -0800 |
| commit | f54cc14a3d0984bbc1efd02a32b4e113d19e0d8e (patch) | |
| tree | 4be46a33a2eb3c8f8cbc7a1e2f25599da7f4a475 /lsp/vscoqtop.lua | |
| parent | feat: vsrocq, rename "vscoqtop" config #4176 (diff) | |
| download | nvim-lspconfig-f54cc14a3d0984bbc1efd02a32b4e113d19e0d8e.tar nvim-lspconfig-f54cc14a3d0984bbc1efd02a32b4e113d19e0d8e.tar.gz nvim-lspconfig-f54cc14a3d0984bbc1efd02a32b4e113d19e0d8e.tar.bz2 nvim-lspconfig-f54cc14a3d0984bbc1efd02a32b4e113d19e0d8e.tar.lz nvim-lspconfig-f54cc14a3d0984bbc1efd02a32b4e113d19e0d8e.tar.xz nvim-lspconfig-f54cc14a3d0984bbc1efd02a32b4e113d19e0d8e.tar.zst nvim-lspconfig-f54cc14a3d0984bbc1efd02a32b4e113d19e0d8e.zip | |
fix(docs): handle config errors, document rename #4192
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.
Diffstat (limited to 'lsp/vscoqtop.lua')
| -rw-r--r-- | lsp/vscoqtop.lua | 6 |
1 files changed, 4 insertions, 2 deletions
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 |
