From 401e50fae626c4707af12114b5ddb7bb9f4236a4 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 26 Mar 2025 12:13:08 -0700 Subject: 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. --- plugin/lspconfig.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin') diff --git a/plugin/lspconfig.lua b/plugin/lspconfig.lua index 92a8208b..47ba1731 100644 --- a/plugin/lspconfig.lua +++ b/plugin/lspconfig.lua @@ -65,7 +65,7 @@ end -- Called from plugin/lspconfig.vim because it requires knowing that the last -- script in scriptnames to be executed is lspconfig. -api.nvim_create_user_command('LspInfo', ':che lspconfig', { desc = 'Deprecated alias to `:che lspconfig`' }) +api.nvim_create_user_command('LspInfo', ':checkhealth vim.lsp', { desc = 'Alias to `:checkhealth vim.lsp`' }) api.nvim_create_user_command('LspStart', function(info) local server_name = string.len(info.args) > 0 and info.args or nil -- cgit v1.2.3-70-g09d2