MyNixOS website logo

The content of the (config.programs.jjui.configDir)/config.lua file, set either by specifying a path to a Lua file or by providing a multi-line Lua string.

See https://idursun.github.io/jjui/customization/config-lua/ for documentation on Lua support.

Use the option plugins to configure Lua plugins imported here.

Declarations
Type
null or absolute path or strings concatenated with "\n"
Default
null
Example
''
  local foo = require("plugins.foo")
  local bar = require("plugins.bar")
  
  function setup(config)
    foo.setup(config)
    bar.setup("#5B8DEF", config)
  
    config.action("show diff in diffnav", function()
      local change_id = context.change_id()
      if not change_id or change_id == "" then
        flash({ text = "No revision selected", error = true })
        return
      end
  
      exec_shell(string.format("jj diff -r %q --git --color always | diffnav", change_id))
    end, { desc = "show diff in diffnav", key = "ctrl+d", scope = "revisions" })
  end
''