plugins.direnv.settings

The configuration options for direnv without the direnv_ prefix.

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

  • foo_bar = 1 -> :setglobal direnv_foo_bar=1
  • hello = "world" -> :setglobal direnv_hello="world"
  • some_toggle = true -> :setglobal direnv_some_toggle
  • other_toggle = false -> :setglobal nodirenv_other_toggle

Type: attribute set of anything

Default: { }

Example:

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

Declared by:

plugins.direnv.settings.direnv_auto

It will not execute :DirenvExport automatically if the value is false. Default: true.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.direnv.settings.direnv_edit_mode

Select the command to open buffers to edit. Default: ‘edit’.

Plugin default: "edit"

Type: null or one of “edit”, “split”, “tabedit”, “vsplit” or raw lua code

Default: null

Declared by:

plugins.direnv.settings.direnv_silent_load

Stop echoing output from Direnv command. Default: true

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by: