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 0.

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

Default: null

Plugin default: 1

Declared by:

plugins.direnv.settings.direnv_edit_mode

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

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

Default: null

Plugin default: "edit"

Declared by:

plugins.direnv.settings.direnv_silent_load

Stop echoing output from Direnv command.

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

Default: null

Plugin default: 1

Declared by: