From 7ad4a11cc5742774877c529fcfb2702f7caf75e4 Mon Sep 17 00:00:00 2001 From: Markus Koller Date: Sat, 14 Jun 2025 00:56:33 +0200 Subject: fix!: drop support for multiple args in :LspStop/:LspRestart #3896 Problem: :LspStop/:LspRestart support multiple args, which is unlikely to be used for interactive usage. These commands are intended for interactive usage, not scripts. Scripts should use the vim.lsp API. Solution: It is unlikely that users specify multiple args, so let's drop it to simplify the code and interface. --- plugin/lspconfig.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugin') diff --git a/plugin/lspconfig.lua b/plugin/lspconfig.lua index 7cde1386..10250919 100644 --- a/plugin/lspconfig.lua +++ b/plugin/lspconfig.lua @@ -149,8 +149,8 @@ if vim.version.ge(vim.version(), { 0, 11, 2 }) then end end) end, { - desc = 'Restart the given client(s)', - nargs = '*', + desc = 'Restart the given client', + nargs = '?', complete = complete_client, }) @@ -175,8 +175,8 @@ if vim.version.ge(vim.version(), { 0, 11, 2 }) then end end end, { - desc = 'Disable and stop the given client(s)', - nargs = '*', + desc = 'Disable and stop the given client', + nargs = '?', complete = complete_client, }) -- cgit v1.2.3-70-g09d2