diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2025-03-26 12:13:08 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-26 12:13:08 -0700 |
| commit | 401e50fae626c4707af12114b5ddb7bb9f4236a4 (patch) | |
| tree | 5a8aafda5664f3283d93d6f8a2ded3a5c292ab2d /lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-401e50fae626c4707af12114b5ddb7bb9f4236a4.tar nvim-lspconfig-401e50fae626c4707af12114b5ddb7bb9f4236a4.tar.gz nvim-lspconfig-401e50fae626c4707af12114b5ddb7bb9f4236a4.tar.bz2 nvim-lspconfig-401e50fae626c4707af12114b5ddb7bb9f4236a4.tar.lz nvim-lspconfig-401e50fae626c4707af12114b5ddb7bb9f4236a4.tar.xz nvim-lspconfig-401e50fae626c4707af12114b5ddb7bb9f4236a4.tar.zst nvim-lspconfig-401e50fae626c4707af12114b5ddb7bb9f4236a4.zip | |
feat: alias :LspInfo to `:checkhealth vim.lsp` #3663
Problem:
`:checkhealth lspconfig` has no benefits vs `:checkhealth vim.lsp`.
Solution:
- on Nvim 0.11+, `:LspInfo` is an alias to `:checkhealth vim.lsp`
instead of `:checkhealth lspconfig`.
- `lua/lspconfig/health.lua` will be removed in a few months.
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/health.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/lspconfig/health.lua b/lua/lspconfig/health.lua index 7477dff7..02326c84 100644 --- a/lua/lspconfig/health.lua +++ b/lua/lspconfig/health.lua @@ -323,6 +323,12 @@ local function check_lspdocs(buf_clients, other_matching_configs) end function M.check() + if vim.fn.has('nvim-0.11') == 1 then + vim.deprecate(':checkhealth lspconfig', ':checkhealth vim.lsp', '0.12', 'nvim-lspconfig', false) + vim.cmd [[checkhealth vim.lsp]] + return + end + -- XXX: create "q" mapping until :checkhealth has this feature in Nvim stable. vim.cmd [[nnoremap <buffer> q <c-w>q]] |
