actions-preview

URL: https://github.com/aznhe21/actions-preview.nvim/

Maintainers: Gaetan Lepage

plugins.actions-preview.enable

Whether to enable actions-preview.nvim.

Type: boolean

Default: false

Example: true

Declared by:

plugins.actions-preview.package

The actions-preview.nvim package to use.

Type: package

Default: pkgs.vimPlugins.actions-preview-nvim

Declared by:

plugins.actions-preview.autoLoad

Whether to automatically load actions-preview.nvim when neovim starts.

Type: boolean

Default: false when lazy-loading is enabled.

Example: false

Declared by:

plugins.actions-preview.settings

Options provided to the require('actions-preview').setup function.

Type: attribute set of anything

Default: { }

Example:

{
  highlight_command = [
    lib.nixvim.mkRaw "require('actions-preview.highlight').delta 'delta --side-by-side'"
    lib.nixvim.mkRaw "require('actions-preview.highlight').diff_so_fancy()"
    lib.nixvim.mkRaw "require('actions-preview.highlight').diff_highlight()"
  ];
  telescope = {
    layout_config = {
      height = 0.9;
      preview_cutoff = 20;
      preview_height = lib.nixvim.mkRaw ''
  function(_, _, max_lines)
    return max_lines - 15
  end
'';
      prompt_position = "top";
      width = 0.8;
    };
    layout_strategy = "vertical";
    sorting_strategy = "ascending";
  };
}

Declared by: