tinygit

URL: https://github.com/chrisgrieser/nvim-tinygit/

Maintainers: Gaetan Lepage

plugins.tinygit.enable

Whether to enable nvim-tinygit.

Type: boolean

Default: false

Example: true

Declared by:

plugins.tinygit.package

The nvim-tinygit package to use.

Type: package

Default: pkgs.vimPlugins.nvim-tinygit

Declared by:

plugins.tinygit.autoLoad

Whether to automatically load nvim-tinygit when neovim starts.

Type: boolean

Default: false when lazy-loading is enabled.

Example: false

Declared by:

plugins.tinygit.settings

Options provided to the require('tinygit').setup function.

Type: attribute set of anything

Default: { }

Example:

{
  commit = {
    keepAbortedMsgSecs = {
      __raw = "60 * 10";
    };
    spellcheck = true;
    subject = {
      autoFormat = {
        __raw = ''
          function(subject)
            -- remove trailing dot https://commitlint.js.org/reference/rules.html#body-full-stop
            subject = subject:gsub("%.$", "")
          
            -- sentence case of title after the type
            subject = subject
              :gsub("^(%w+: )(.)", function(c1, c2) return c1 .. c2:lower() end) -- no scope
              :gsub("^(%w+%b(): )(.)", function(c1, c2) return c1 .. c2:lower() end) -- with scope
            return subject
          end
        '';
      };
      enforceType = true;
    };
  };
  stage = {
    moveToNextHunkOnStagingToggle = true;
  };
  statusline = {
    blame = {
      hideAuthorNames = [
        "John Doe"
        "johndoe"
      ];
      ignoreAuthors = [
        "🤖 automated"
      ];
      maxMsgLen = 55;
    };
  };
}

Declared by: