Skip to content

Commit

Permalink
fix(lsp): make the effective range determined by the loaded buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ofseed committed May 3, 2024
1 parent 5282361 commit a2aa823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/lua/vim/lsp/inlay_hint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ function M.enable(enable, filter)

if filter.bufnr == nil then
globalstate.enabled = enable
for bufnr, _ in pairs(bufstates) do
for _, bufnr in pairs(api.nvim_list_bufs()) do
if api.nvim_buf_is_loaded(bufnr) then
if enable == false then
_disable(bufnr)
Expand Down

0 comments on commit a2aa823

Please sign in to comment.