Skip to content

Is there any ways to use my native <TAB> settings in NvimTree instead of use the "Preview"? #1370

Description

@NEX-S

i tried to config nvim-tree like this but it seems dont work.

        mappings = {
            custom_only = false,
            list = {
                { key = 'l', cb = require'nvim-tree.config'.nvim_tree_callback "preview" },
                { key = 'v', cb = require'nvim-tree.config'.nvim_tree_callback "vsplit" },
                { key = 's', cb = require'nvim-tree.config'.nvim_tree_callback "split" },
                { key = '.', cb = require'nvim-tree.config'.nvim_tree_callback "toggle_dotfiles" },
                { key = '!', cb = require'nvim-tree.config'.nvim_tree_callback "run_file_command" },
                { key = '?', cb = require'nvim-tree.config'.nvim_tree_callback "toggle_help" },
                { key = '<TAB>', cb = require'nvim-tree.config'.nvim_tree_callback "" }
            },
        },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions