diff options
| author | dundargoc <gocdundar@gmail.com> | 2025-01-22 13:58:45 +0100 |
|---|---|---|
| committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2025-01-22 14:04:37 +0100 |
| commit | 0e234f4cad56dd77a2c59de5de5a859e05fd66b3 (patch) | |
| tree | fc0836783873079a4f771510056029f32add1223 /plugin/lspconfig.lua | |
| parent | ci: fix false codespell warning (diff) | |
| download | nvim-lspconfig-0e234f4cad56dd77a2c59de5de5a859e05fd66b3.tar nvim-lspconfig-0e234f4cad56dd77a2c59de5de5a859e05fd66b3.tar.gz nvim-lspconfig-0e234f4cad56dd77a2c59de5de5a859e05fd66b3.tar.bz2 nvim-lspconfig-0e234f4cad56dd77a2c59de5de5a859e05fd66b3.tar.lz nvim-lspconfig-0e234f4cad56dd77a2c59de5de5a859e05fd66b3.tar.xz nvim-lspconfig-0e234f4cad56dd77a2c59de5de5a859e05fd66b3.tar.zst nvim-lspconfig-0e234f4cad56dd77a2c59de5de5a859e05fd66b3.zip | |
refactor: silence luals warnings
Diffstat (limited to 'plugin/lspconfig.lua')
| -rw-r--r-- | plugin/lspconfig.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/lspconfig.lua b/plugin/lspconfig.lua index fc60427d..44a1fcf9 100644 --- a/plugin/lspconfig.lua +++ b/plugin/lspconfig.lua @@ -90,6 +90,8 @@ end, { api.nvim_create_user_command('LspRestart', function(info) local detach_clients = {} for _, client in ipairs(get_clients_from_cmd_args(info.args)) do + -- Can remove diagnostic disabling when changing to client:stop() in nvim 0.11+ + --- @diagnostic disable: missing-parameter client.stop() if vim.tbl_count(client.attached_buffers) > 0 then detach_clients[client.name] = { client, lsp.get_buffers_by_client_id(client.id) } @@ -142,6 +144,8 @@ api.nvim_create_user_command('LspStop', function(info) end for _, client in ipairs(clients) do + -- Can remove diagnostic disabling when changing to client:stop(force) in nvim 0.11+ + --- @diagnostic disable: param-type-mismatch client.stop(force) end end, { |
