File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,9 @@ see ':h rustaceanvim.lsp.ClientOpts'.
4848 -- [https://github.com/neovim/neovim/issues/26511]
4949 -- This workaround forces Neovim to redraw inlay hints if they are enabled,
5050 -- as soon as rust-analyzer has fully initialized.
51- if type (vim .lsp .inlay_hint ) == ' table' then
52- for _ , bufnr in ipairs (vim .lsp .get_buffers_by_client_id (ctx .client_id )) do
51+ local client = vim .lsp .get_client_by_id (ctx .client_id )
52+ if client and type (vim .lsp .inlay_hint ) == ' table' then
53+ for bufnr , _ in pairs (client .attached_buffers ) do
5354 if vim .lsp .inlay_hint .is_enabled { bufnr = bufnr } then
5455 vim .lsp .inlay_hint .enable (false , { bufnr = bufnr })
5556 vim .lsp .inlay_hint .enable (true , { bufnr = bufnr })
You can’t perform that action at this time.
0 commit comments