more hotkeys!

This commit is contained in:
RingOfStorms (Joshua Bell) 2023-12-20 22:41:52 -06:00
parent b5bbfe57a3
commit 6cf68f8680
2 changed files with 20 additions and 1 deletions

View file

@ -1,7 +1,12 @@
local function lsp_clients()
local clients = {}
for _, client in pairs(vim.lsp.buf_get_clients(0)) do
clients[#clients + 1] = client.name
local name = client.name
-- TODO revisit this doesn't work
if not client.initialized then
name = name .. " (loading)"
end
clients[#clients + 1] = name
end
table.sort(clients)