GNU General Public License v3.0

项目介绍

nvzone/menu 是一个托管在 GitHub 上的开源项目,主要使用 Lua 编写,采用 GNU General Public License v3.0 许可证,目前获得 668 个 Star、13 次 Fork。

仓库全名
nvzone/menu
开源许可证
GNU General Public License v3.0
Star 数
668
Fork 数
13
未关闭 Issue
4

README 摘要

Menu Menu ui for neovim ( supports nested menus ) https://github.com/user-attachments/assets/89d96170-e039-4d3d-9640-0fdc3358a833 Install Usage options is a table or string, if string then it will look at the table from menus module of this repo opts : { mouse = true, border = false }" For keyboard users Use h l to move between windows Use q to close the window Press the keybind defined for menu item or scroll to it…

完整内容见 GitHub 原始 README 或本页 。

常见问题

menu 用什么语言开发?

主要使用 Lua 编写,采用 GNU General Public License v3.0 许可证,目前有 668 个 Star。

menu 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 menu 的源码?

可以直接克隆仓库:git clone https://github.com/nvzone/menu.git,默认分支为 main;安装与运行步骤见仓库 README。

menu 最近还在维护吗?

仓库最近一次更新为 2025年6月1日,当前有 4 个未关闭 Issue;Star 数为 668,可作为社区活跃度的参考。

关于

Menu plugin for neovim ( supports nested menus ) made using volt

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
697
价值分
404
活跃状态
活跃

README

Menu ui for neovim ( supports nested menus )

image image image

https://github.com/user-attachments/assets/89d96170-e039-4d3d-9640-0fdc3358a833

Install

{ "nvzone/volt" , lazy = true },
{ "nvzone/menu" , lazy = true },

Usage

require("menu").open(options, opts) 
  • options is a table or string, if string then it will look at the table from menus* module of this repo
  • opts : { mouse = true, border = false }"

For keyboard users

  • Use h l to move between windows
  • Use q to close the window
  • Press the keybind defined for menu item or scroll to it and press enter, to execute it

Examples

  • Keyboard users can run the mapping when inside the menu, mouse users can click.
-- Keyboard users
vim.keymap.set("n", "<C-t>", function()
  require("menu").open("default")
end, {})

-- mouse users + nvimtree users!
vim.keymap.set({ "n", "v" }, "<RightMouse>", function()
  require('menu.utils').delete_old_menus()

  vim.cmd.exec '"normal! \\<RightMouse>"'

  -- clicked buf
  local buf = vim.api.nvim_win_get_buf(vim.fn.getmousepos().winid)
  local options = vim.bo[buf].ft == "NvimTree" and "nvimtree" or "default"

  require("menu").open(options, { mouse = true })
end, {})

Check example of defaults menu to see know syntax of options table.

:gift_heart: Support

If you like NvChad or its plugins and would like to support it via donation

kofi paypal buymeacoffee patreon

评论

暂无评论