Skip to content

nvim-tree.api.tree.resize calling non-existant function "configure_width" #3346

Description

@hgfi

Description

Hi,

The nvim-tree.api.tree.resize does not work because it tries to use configure_width from the view module which does not exist (seems like it was moved to view-state in #3306 )

Neovim version

NVIM v0.12.4
Build type: Release
LuaJIT 2.1.1782726002

Operating system and version

Bazzite

Windows variant

No response

nvim-tree version

531b807

Clean room replication

no changes

Steps to reproduce

:NvimTreeOpen
:lua require("nvim-tree.api").tree.resize({width = 50})

Expected behavior

resize works without errors

Actual behavior

fails with this error:

E5108: Lua: ...tart/nvim-tree.lua/lua/nvim-tree/actions/tree/resize.lua:19: attempt to call field 'configure_width' (a nil value)
stack traceback:
        ...tart/nvim-tree.lua/lua/nvim-tree/actions/tree/resize.lua:19: in function 'fn'
        ...ck/packer/start/nvim-tree.lua/lua/nvim-tree/api/impl.lua:250: in function 'resize'
        [string ":lua"]:1: in main chunk

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    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