feat(git): add in-house hunks module, replace gitsigns.nvim
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user