aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-12-17 12:11:31 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-12-19 11:33:57 +0100
commit040001d85e9190a904d0e35ef5774633e14d8475 (patch)
tree1e4438d174cc73b4651ff8daf42808a7e2b6c190 /plugin
parentdocs: update configs.md (diff)
downloadnvim-lspconfig-040001d85e9190a904d0e35ef5774633e14d8475.tar
nvim-lspconfig-040001d85e9190a904d0e35ef5774633e14d8475.tar.gz
nvim-lspconfig-040001d85e9190a904d0e35ef5774633e14d8475.tar.bz2
nvim-lspconfig-040001d85e9190a904d0e35ef5774633e14d8475.tar.lz
nvim-lspconfig-040001d85e9190a904d0e35ef5774633e14d8475.tar.xz
nvim-lspconfig-040001d85e9190a904d0e35ef5774633e14d8475.tar.zst
nvim-lspconfig-040001d85e9190a904d0e35ef5774633e14d8475.zip
refactor: fix luals warningsv1.2.0
Diffstat (limited to 'plugin')
-rw-r--r--plugin/lspconfig.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/lspconfig.lua b/plugin/lspconfig.lua
index a852d967..0283d847 100644
--- a/plugin/lspconfig.lua
+++ b/plugin/lspconfig.lua
@@ -45,7 +45,7 @@ local get_clients_from_cmd_args = function(arg)
return ''
end)
for id in (arg or ''):gmatch '(%d+)' do
- local client = lsp.get_client_by_id(tonumber(id))
+ local client = lsp.get_client_by_id(assert(tonumber(id)))
if client == nil then
err_msg = err_msg .. ('client id "%s" not found\n'):format(id)
end