aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/lspconfig.lua
diff options
context:
space:
mode:
authorMarkus Koller <markus@snafu.ch>2025-06-14 00:56:33 +0200
committerGitHub <noreply@github.com>2025-06-13 15:56:33 -0700
commit7ad4a11cc5742774877c529fcfb2702f7caf75e4 (patch)
tree52448b7daf4ae102ab4820f347ed630d6cc10b84 /plugin/lspconfig.lua
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-7ad4a11cc5742774877c529fcfb2702f7caf75e4.tar
nvim-lspconfig-7ad4a11cc5742774877c529fcfb2702f7caf75e4.tar.gz
nvim-lspconfig-7ad4a11cc5742774877c529fcfb2702f7caf75e4.tar.bz2
nvim-lspconfig-7ad4a11cc5742774877c529fcfb2702f7caf75e4.tar.lz
nvim-lspconfig-7ad4a11cc5742774877c529fcfb2702f7caf75e4.tar.xz
nvim-lspconfig-7ad4a11cc5742774877c529fcfb2702f7caf75e4.tar.zst
nvim-lspconfig-7ad4a11cc5742774877c529fcfb2702f7caf75e4.zip
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.
Diffstat (limited to 'plugin/lspconfig.lua')
-rw-r--r--plugin/lspconfig.lua8
1 files changed, 4 insertions, 4 deletions
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,
})