feat: show ahead and behind commits in winbar

This commit is contained in:
Jakub F. Bortlík
2026-03-02 12:41:28 +01:00
parent d67484fe87
commit f7c7a93da4
5 changed files with 66 additions and 46 deletions

View File

@@ -3,16 +3,17 @@
-- This module is also responsible for ensuring that the state of the plugin
-- is valid via dependencies
local git = require("gitlab.git")
local u = require("gitlab.utils")
local List = require("gitlab.utils.list")
local M = {}
M.emoji_map = nil
local M = {
emoji_map = nil,
ahead_behind = { nil, nil },
}
---Returns a gitlab token, and a gitlab URL. Used to connect to gitlab.
---@return string|nil, string|nil, string|nil
M.default_auth_provider = function()
local git = require("gitlab.git")
local base_path, err = M.settings.config_path, nil
if base_path == nil then
base_path, err = git.base_dir()