Skip to content

Commit

Permalink
feat: skip render current line in insert mode
Browse files Browse the repository at this point in the history
  • Loading branch information
glepnir committed Nov 6, 2024
1 parent dea2901 commit aba25f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/indentmini/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ local function find_current_range(currow_indent)
end

local function on_line(_, _, bufnr, row)
if row == context.currow and api.nvim_get_mode().mode == 'i' then
return
end
local sp = find_in_snapshot(row + 1)
if sp.indent == 0 or out_current_range(row) then
return
Expand Down

0 comments on commit aba25f5

Please sign in to comment.