plugins.neo-tree.window.autoExpandWidth

Expand the window when file exceeds the window width. does not work with position = “float”

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.neo-tree.window.height

Applies to top and bottom positions

Plugin default: 15

Type: null or signed integer or floating point number or raw lua code

Default: null

Declared by:

plugins.neo-tree.window.insertAs

Affects how nodes get inserted into the tree during creation/pasting/moving of files if the node under the cursor is a directory:

  • “child”: Insert nodes as children of the directory under cursor.
  • “sibling”: Insert nodes as siblings of the directory under cursor.

Plugin default: "child"

Type: null or one of “child”, “sibling” or raw lua code

Default: null

Declared by:

plugins.neo-tree.window.mappings

Mapping options

Plugin default:

```nix
  {
    "<space>" = {
      command = "toggle_node";
      # disable `nowait` if you have existing combos starting with this char that you want to use
      nowait = false;
    };
    "<2-LeftMouse>" = "open";
    "<cr>" = "open";
    "<esc>" = "revert_preview";
    P = {
      command = "toggle_preview";
      config = { use_float = true; };
    };
    l = "focus_preview";
    S = "open_split";
    # S = "split_with_window_picker";
    s = "open_vsplit";
    # s = "vsplit_with_window_picker";
    t = "open_tabnew";
    # "<cr>" = "open_drop";
    # t = "open_tab_drop";
    w = "open_with_window_picker";
    C = "close_node";
    z = "close_all_nodes";
    # Z = "expand_all_nodes";
    R = "refresh";
    a = {
      command = "add";
      # some commands may take optional config options, see `:h neo-tree-mappings` for details
      config = {
        show_path = "none"; # "none", "relative", "absolute"
      };
    };
    A = "add_directory"; # also accepts the config.show_path and config.insert_as options.
    d = "delete";
    r = "rename";
    y = "copy_to_clipboard";
    x = "cut_to_clipboard";
    p = "paste_from_clipboard";
    c = "copy"; # takes text input for destination, also accepts the config.show_path and config.insert_as options
    m = "move"; # takes text input for destination, also accepts the config.show_path and config.insert_as options
    e = "toggle_auto_expand_width";
    q = "close_window";
    "?" = "show_help";
    "<" = "prev_source";
    ">" = "next_source";
  }

Type: null or (attribute set of (string or (attribute set)))

Default: null

Declared by:

plugins.neo-tree.window.position

position

Plugin default: "left"

Type: null or one of “left”, “right”, “top”, “bottom”, “float”, “current” or raw lua code

Default: null

Declared by:

plugins.neo-tree.window.sameLevel

Create and paste/move files/directories on the same level as the directory under cursor (as opposed to within the directory under cursor).

Plugin default: false

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.neo-tree.window.width

Applies to left and right positions

Plugin default: 40

Type: null or signed integer or floating point number or raw lua code

Default: null

Declared by: