Skip to content

Commit 445dd48

Browse files
authored
Migrate to server_capabilities (#78)
resolved_capabilities is deprecated. neovim/neovim#14090 (comment) Fixes #77
1 parent 4073f76 commit 445dd48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lsp-status.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ local function on_attach(client)
8787

8888
-- If the client is a documentSymbolProvider, set up an autocommand
8989
-- to update the containing symbol
90-
if _config.current_function and client.resolved_capabilities.document_symbol then
90+
if _config.current_function and client.server_capabilities.documentSymbolProvider then
9191
vim.api.nvim_command(
9292
'au CursorHold <buffer> lua require("lsp-status").update_current_function()')
9393
end

0 commit comments

Comments
 (0)