From 38cd0bb157043918411e8a1c6eedf577f7118b8f Mon Sep 17 00:00:00 2001 From: "yoshiaki.inoue" Date: Wed, 25 Jun 2025 15:07:15 +0900 Subject: [PATCH 1/2] fix: enable indent on all rows --- lua/hlchunk/mods/indent/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/hlchunk/mods/indent/init.lua b/lua/hlchunk/mods/indent/init.lua index 876d6d2..b9cce64 100644 --- a/lua/hlchunk/mods/indent/init.lua +++ b/lua/hlchunk/mods/indent/init.lua @@ -178,7 +178,7 @@ function IndentMod:createAutocmd() local wins = fn.win_findbuf(bufnr) or {} for _, winid in ipairs(wins) do - local range = Scope(bufnr, fn.line("w0", winid) - 1, fn.line("w$", winid) - 1) + local range = Scope(bufnr, fn.line("0", winid) - 1, fn.line("$", winid) - 1) local ahead_lines = self.conf.ahead_lines range.start = math.max(0, range.start - ahead_lines) range.finish = math.min(api.nvim_buf_line_count(bufnr) - 1, range.finish + ahead_lines) From 74c3e28003fc6212492a33f7081d604df761e29a Mon Sep 17 00:00:00 2001 From: "yoshiaki.inoue" Date: Wed, 25 Jun 2025 15:26:38 +0900 Subject: [PATCH 2/2] chore: remove WinScrolledX/Y autocmds --- lua/hlchunk/mods/indent/init.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/lua/hlchunk/mods/indent/init.lua b/lua/hlchunk/mods/indent/init.lua index b9cce64..51e1237 100644 --- a/lua/hlchunk/mods/indent/init.lua +++ b/lua/hlchunk/mods/indent/init.lua @@ -191,8 +191,6 @@ function IndentMod:createAutocmd() end) local autocommands = { - { events = { "User" }, pattern = "WinScrolledX", opts = { lazy = false } }, - { events = { "User" }, pattern = "WinScrolledY", opts = { lazy = true } }, { events = { "TextChanged", "TextChangedI", "BufWinEnter" }, opts = { lazy = false } }, { events = { "OptionSet" }, pattern = "list,shiftwidth,tabstop,expandtab", opts = { lazy = false } }, }