Skip to content

Commit 666e7ba

Browse files
committed
Export capabilities table and use consistent client initialization
1 parent 84740fb commit 666e7ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/lsp-status.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ end
3636

3737
local function on_attach(client)
3838
-- Register the client for messages
39-
messaging.register_client(client.name)
39+
messaging.register_client(client.id, client.name)
4040

4141
-- Set up autocommands to refresh the statusline when information changes
4242
vim.api.nvim_command('augroup lsp_aucmds')
@@ -69,6 +69,7 @@ local M = {
6969
config = configure,
7070
on_attach = on_attach,
7171
status = statusline,
72+
capabilities = messaging.capabilities
7273
}
7374

7475
return M

0 commit comments

Comments
 (0)