Skip to content

absolute path and relative path #482

Closed
@smartding

Description

@smartding

When I open a file with nvim-tree.lua, and I run "echo expand('%)" or "ctrl-g", I always get the absolute path, which can be really long for some of the projects I work on.

But if I open a file with ":e path/to/file", or if I open with another plugin such as telescope.nvim, "echo expand('%)" or "ctrl-g" show the relative path, relative to the current working directory.

Is there any way I can configure nvim-tree.lua, so that "echo expand('%)" or "ctrl-g" will show the relative path?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions