plugins.committia.settings

The configuration options for committia without the committia_ prefix.

For example, the following settings are equivialent to these :setglobal commands:

  • foo_bar = 1 -> :setglobal committia_foo_bar=1
  • hello = "world" -> :setglobal committia_hello="world"
  • some_toggle = true -> :setglobal committia_some_toggle
  • other_toggle = false -> :setglobal nocommittia_other_toggle

Type: attribute set of anything

Default: { }

Example:

{
  callback = {
    __raw = ''
      function()
        print('nixvim')
      end
    '';
  };
  foo_bar = 42;
  hostname = "localhost:8080";
}

Declared by:

plugins.committia.settings.diff_window_opencmd

Vim command which opens a diff window in multi-columns mode.

Type: null or string or raw lua code

Default: null

Plugin default: "botright vsplit"

Declared by:

plugins.committia.settings.edit_window_width

If committia.vim is in multi-columns mode, specifies the width of the edit window.

Type: null or unsigned integer, meaning >=0, or raw lua code

Default: null

Plugin default: 80

Declared by:

plugins.committia.settings.min_window_width

If the width of window is narrower than the value, committia.vim employs single column mode.

Type: null or unsigned integer, meaning >=0, or raw lua code

Default: null

Plugin default: 160

Declared by:

plugins.committia.settings.open_only_vim_starting

If 0, committia.vim always attempts to open committia’s buffer when COMMIT_EDITMSG buffer is opened. If you use vim-fugitive, I recommend to set this value to 1.

Type: null or (one of 0, 1) or raw lua code

Default: null

Plugin default: 1

Declared by:

plugins.committia.settings.singlecolumn_diff_window_opencmd

Vim command which opens a diff window in single-column mode.

Type: null or string or raw lua code

Default: null

Plugin default: "belowright split"

Declared by:

plugins.committia.settings.status_window_min_height

Minimum height of a status window.

Type: null or unsigned integer, meaning >=0, or raw lua code

Default: null

Plugin default: 0

Declared by:

plugins.committia.settings.status_window_opencmd

Vim command which opens a status window in multi-columns mode.

Type: null or string or raw lua code

Default: null

Plugin default: "belowright split"

Declared by:

plugins.committia.settings.use_singlecolumn

If the value is ‘always’, committia.vim always employs single column mode.

Type: null or string or raw lua code

Default: null

Plugin default: "always"

Declared by: