Skip to content

Commit

Permalink
fix: fmt client id with name in complete of LspStop (neovim#3436)
Browse files Browse the repository at this point in the history
Problem: client id and name are separated by spaces, which may cause misunderstanding.
Solution: use colon combine as one thing.
  • Loading branch information
glepnir authored Nov 15, 2024
1 parent 4f661ca commit 87c7c83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ end

local lsp_get_active_client_ids = function(arg)
local clients = vim.tbl_map(function(client)
return ('%d (%s)'):format(client.id, client.name)
return ('%d:%s'):format(client.id, client.name)
end, util.get_managed_clients())

return completion_sort(vim.tbl_filter(function(s)
Expand Down Expand Up @@ -81,7 +81,7 @@ api.nvim_create_user_command('LspRestart', function(info)
detach_clients[client.name] = { client, lsp.get_buffers_by_client_id(client.id) }
end
end
local timer = vim.uv.new_timer()
local timer = assert(vim.uv.new_timer())
timer:start(
500,
100,
Expand Down

0 comments on commit 87c7c83

Please sign in to comment.