Skip to content

Commit 0ac39cd

Browse files
committed
Add a missing use of Buffer:extmarks.
1 parent 74fde74 commit 0ac39cd

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lua/lean/lsp.lua

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,9 @@ function lsp.goals_accomplished_at(params)
4242
end
4343

4444
local pos = { params.position.line, 0 }
45-
local hls = vim.api.nvim_buf_get_extmarks(buffer.bufnr, lsp.goals_ns, pos, pos, {
46-
details = true,
47-
overlap = true,
48-
type = 'highlight',
49-
})
45+
46+
local opts = { details = true, overlap = true, type = 'highlight' }
47+
local hls = buffer:extmarks(lsp.goals_ns, pos, pos, opts)
5048
return vim.iter(hls):any(function(hl)
5149
return hl[4].hl_group == 'leanGoalsAccomplished'
5250
end)

0 commit comments

Comments
 (0)