MunifTanjim / nui.nvim

UI Component Library for Neovim.
MIT License
1.62k stars 57 forks source link

Add 'on_mount' option to menu #380

Open cjodo opened 3 months ago

cjodo commented 3 months ago

Changes:

Usage: Users can now pass an on_mount function when creating a menu to execute custom code when the menu is mounted. Example usage:


local Menu = require('nui.menu')

local menu = Menu({
    ...
    on_mount = function()
        print("Menu mounted!")
    end,
    -- other menu options
})