{"id":19680006,"url":"https://github.com/nvzone/menu","last_synced_at":"2025-04-08T11:07:12.926Z","repository":{"id":256683413,"uuid":"855569341","full_name":"nvzone/menu","owner":"nvzone","description":"Menu plugin for neovim ( supports nested menus ) made using volt","archived":false,"fork":false,"pushed_at":"2025-03-31T09:34:54.000Z","size":44,"stargazers_count":531,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-02T20:43:23.890Z","etag":null,"topics":["lua","menu","neovim","neovim-plugin","nvchad"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nvzone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"siduck","patreon":"siduck","ko_fi":"siduck","buy_me_a_coffee":"siduck","custom":["https://www.paypal.com/paypalme/siduck76"]}},"created_at":"2024-09-11T04:55:04.000Z","updated_at":"2025-04-01T02:00:03.000Z","dependencies_parsed_at":"2024-11-06T08:24:19.272Z","dependency_job_id":"5560f7b8-84c8-4486-88c5-15d51eed968c","html_url":"https://github.com/nvzone/menu","commit_stats":null,"previous_names":["nvchad/menu","nvzone/menu"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvzone%2Fmenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvzone%2Fmenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvzone%2Fmenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvzone%2Fmenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nvzone","download_url":"https://codeload.github.com/nvzone/menu/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247829490,"owners_count":21002995,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua","menu","neovim","neovim-plugin","nvchad"],"created_at":"2024-11-11T18:01:36.264Z","updated_at":"2025-04-08T11:07:12.887Z","avatar_url":"https://github.com/nvzone.png","language":"Lua","readme":"# Menu\nMenu ui for neovim ( supports nested menus ) \n\n![image](https://github.com/user-attachments/assets/c8402279-b86d-432f-ad11-14a76c887ab1)\n![image](https://github.com/user-attachments/assets/6da0b1a6-54c5-4ecc-ab06-fce1f17595ac)\n![image](https://github.com/user-attachments/assets/d70430e1-74d2-40dd-ba60-0b8919d53af6)\n\nhttps://github.com/user-attachments/assets/89d96170-e039-4d3d-9640-0fdc3358a833\n\n## Install\n\n```lua\n{ \"nvzone/volt\" , lazy = true },\n{ \"nvzone/menu\" , lazy = true },\n```\n\n## Usage\n```lua\nrequire(\"menu\").open(options, opts) \n```\n- options is a table or string, if string then it will look at the table from menus* module of this repo\n- opts : { mouse = true, border = false }\"\n\n### For keyboard users\n- Use `h` `l` to move between windows \n- Use `q` to close the window\n- Press the keybind defined for menu item or scroll to it and press enter, to execute it\n\n### Examples\n\n- Keyboard users can run the mapping when inside the menu, mouse users can click.\n```lua\n-- Keyboard users\nvim.keymap.set(\"n\", \"\u003cC-t\u003e\", function()\n  require(\"menu\").open(\"default\")\nend, {})\n\n-- mouse users + nvimtree users!\nvim.keymap.set({ \"n\", \"v\" }, \"\u003cRightMouse\u003e\", function()\n  require('menu.utils').delete_old_menus()\n\n  vim.cmd.exec '\"normal! \\\\\u003cRightMouse\u003e\"'\n\n  -- clicked buf\n  local buf = vim.api.nvim_win_get_buf(vim.fn.getmousepos().winid)\n  local options = vim.bo[buf].ft == \"NvimTree\" and \"nvimtree\" or \"default\"\n\n  require(\"menu\").open(options, { mouse = true })\nend, {})\n```\n\nCheck example of [defaults menu](https://github.com/NvChad/menu/blob/main/lua/menus/default.lua) to see know syntax of options table.\n\n## :gift_heart: Support\n\nIf you like NvChad or its plugins and would like to support it via donation\n\n[![kofi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge\u0026logo=ko-fi\u0026logoColor=white)](https://ko-fi.com/siduck)\n[![paypal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge\u0026logo=paypal\u0026logoColor=white)](https://paypal.me/siduck13)\n[![buymeacoffee](https://img.shields.io/badge/Buy_Me_A_Coffee-FFDD00?style=for-the-badge\u0026logo=buy-me-a-coffee\u0026logoColor=black)](https://www.buymeacoffee.com/siduck)\n[![patreon](https://img.shields.io/badge/Patreon-F96854?style=for-the-badge\u0026logo=patreon\u0026logoColor=white)](https://www.patreon.com/siduck)\n","funding_links":["https://github.com/sponsors/siduck","https://patreon.com/siduck","https://ko-fi.com/siduck","https://buymeacoffee.com/siduck","https://www.paypal.com/paypalme/siduck76","https://paypal.me/siduck13","https://www.buymeacoffee.com/siduck","https://www.patreon.com/siduck"],"categories":["Lua"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvzone%2Fmenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnvzone%2Fmenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvzone%2Fmenu/lists"}