plugins.zen-mode.settings

Options provided to the require('zen-mode').setup function.

Type: attribute set of anything

Default: { }

Example:

{
  on_close = ''
    function()
      require("gitsigns.actions").toggle_current_line_blame()
      vim.cmd('IBLEnable')
      vim.opt.relativenumber = true
      vim.opt.signcolumn = "yes:2"
      require("gitsigns.actions").refresh()
    end
  '';
  on_open = ''
    function()
      require("gitsigns.actions").toggle_current_line_blame()
      vim.cmd('IBLDisable')
      vim.opt.relativenumber = false
      vim.opt.signcolumn = "no"
      require("gitsigns.actions").refresh()
    end
  '';
  plugins = {
    gitsigns = {
      enabled = true;
    };
    options = {
      enabled = true;
      ruler = false;
      showcmd = false;
    };
    tmux = {
      enabled = false;
    };
    twilight = {
      enabled = false;
    };
  };
  window = {
    backdrop = 0.95;
    height = 1;
    options = {
      signcolumn = "no";
    };
    width = 0.8;
  };
}

Declared by:

plugins.zen-mode.settings.on_close

Callback where you can add custom code when the Zen window closes.

Plugin default: function(win) end

Type: null or lua function string

Default: null

Declared by:

plugins.zen-mode.settings.on_open

Callback where you can add custom code when the Zen window opens.

Plugin default: function(win) end

Type: null or lua function string

Default: null

Declared by: