aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/health.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/lspconfig/health.lua')
-rw-r--r--lua/lspconfig/health.lua6
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]]