Skip to content

Commit

Permalink
respect breakindent and wrap option
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Nov 1, 2024
1 parent 9d9f690 commit dea2901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/indentmini/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ local opt = {
virt_text_pos = 'overlay',
hl_mode = 'combine',
ephemeral = true,
virt_text_repeat_linebreak = false,
},
}

Expand Down Expand Up @@ -216,6 +215,7 @@ local function on_win(_, winid, bufnr, toprow, botrow)
then
return false
end
opt.config.virt_text_repeat_linebreak = vim.wo[winid].wrap and vim.wo[winid].breakindent
local changedtick = api.nvim_buf_get_changedtick(bufnr)
if changedtick ~= context.changedtick then
context = { snapshot = {}, changedtick = changedtick }
Expand Down

0 comments on commit dea2901

Please sign in to comment.