feat(git): add in-house hunks module, replace gitsigns.nvim

This commit is contained in:
2026-05-20 06:10:17 +02:00
parent d979c961a2
commit f4181b89fc
13 changed files with 1055 additions and 75 deletions
+2 -2
View File
@@ -819,7 +819,7 @@ end
---@param buf integer
---@return boolean
local function is_worktree_buf(buf)
function M.is_worktree_buf(buf)
if not vim.api.nvim_buf_is_valid(buf) or vim.bo[buf].buftype ~= "" then
return false
end
@@ -830,7 +830,7 @@ end
---@param buf? integer
function M.track(buf)
buf = expand_buf(buf)
if not is_worktree_buf(buf) then
if not M.is_worktree_buf(buf) then
return
end
local r = M.resolve(buf)