From 857b1aa9e8bc59d26bee278189cd5f87354f196b Mon Sep 17 00:00:00 2001 From: glepnir Date: Sun, 19 May 2024 13:21:56 +0800 Subject: [PATCH] leave comment for future performance improve --- lua/indentmini/init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/indentmini/init.lua b/lua/indentmini/init.lua index 2e19723..c70ebb5 100644 --- a/lua/indentmini/init.lua +++ b/lua/indentmini/init.lua @@ -90,6 +90,7 @@ local function on_line(_, winid, bufnr, row) if line_is_empty and col > 0 then opt.config.virt_text_win_col = i - 1 end + --TODO(glepnir): store id with changedtick then compare for performance buf_set_extmark(bufnr, ns, row, col, opt.config) opt.config.virt_text_win_col = nil end