Skip to content

Is the wrap function necessary? #7

@haondt

Description

@haondt

Instead of wrapping every keymap, Couldn't you just use the event hooks?

    local api = require('nvim-tree.api')
    local floatpreview = require('float-preview')
    local float_close_wrap = floatpreview.close_wrap

    local Event = api.events.Event
    api.events.subscribe(Event.TreeClose, function()
        float_close_wrap(function() end)()
    end)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions