Skip to content

Commit c3dcedd

Browse files
committed
fix: allow overriding cursorline (#143)
By no longer allowing overriding `cursorlineopt`. Not really a desirable solution: a `User` autocmd would be the ideal approach, but it needs a stronger use case.
1 parent 4f73b98 commit c3dcedd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/dap-view/views/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ M.cleanup_view = function(condition, message)
1313
assert(state.bufnr ~= nil, "has nvim-dap-view buffer")
1414

1515
if condition then
16-
vim.wo[state.winnr][0].cursorline = false
16+
vim.wo[state.winnr][0].cursorlineopt = "number"
1717

1818
util.set_lines(state.bufnr, 0, -1, false, { message })
1919

2020
hl.hl_range("MissingData", { 0, 0 }, { 0, #message })
2121
else
22-
vim.wo[state.winnr][0].cursorline = true
22+
vim.wo[state.winnr][0].cursorlineopt = "both"
2323
end
2424

2525
return condition

0 commit comments

Comments
 (0)