{"id":13412386,"url":"https://github.com/CosmicNvim/cosmic-ui","last_synced_at":"2025-03-14T18:31:20.711Z","repository":{"id":40297738,"uuid":"434818327","full_name":"CosmicNvim/cosmic-ui","owner":"CosmicNvim","description":"Cosmic-UI is a simple wrapper around specific vim functionality. Built in order to provide a quick and easy way to create a Cosmic UI experience with Neovim!","archived":false,"fork":false,"pushed_at":"2022-12-30T19:52:48.000Z","size":58,"stargazers_count":162,"open_issues_count":1,"forks_count":1,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-07-31T20:50:51.192Z","etag":null,"topics":["cosmic","ide","lua","neovim","neovim-configuration","neovim-dotfiles","neovim-lua","neovim-lua-plugin","neovim-plugin","neovim-ui","ui","vim","vim-plugin"],"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/CosmicNvim.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}},"created_at":"2021-12-04T05:43:05.000Z","updated_at":"2024-06-20T16:32:40.000Z","dependencies_parsed_at":"2023-01-31T15:00:39.109Z","dependency_job_id":null,"html_url":"https://github.com/CosmicNvim/cosmic-ui","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CosmicNvim%2Fcosmic-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CosmicNvim%2Fcosmic-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CosmicNvim%2Fcosmic-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CosmicNvim%2Fcosmic-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CosmicNvim","download_url":"https://codeload.github.com/CosmicNvim/cosmic-ui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243625114,"owners_count":20321235,"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":["cosmic","ide","lua","neovim","neovim-configuration","neovim-dotfiles","neovim-lua","neovim-lua-plugin","neovim-plugin","neovim-ui","ui","vim","vim-plugin"],"created_at":"2024-07-30T20:01:24.095Z","updated_at":"2025-03-14T18:31:20.398Z","avatar_url":"https://github.com/CosmicNvim.png","language":"Lua","readme":"\u003ch1 align=\"center\"\u003e💫 Cosmic-UI\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Neovim Minimum Version\" src=\"https://img.shields.io/badge/Neovim-0.6.0+-blueviolet.svg?style=flat-square\u0026logo=Neovim\u0026logoColor=white)](https://github.com/neovim/neovim\"\u003e\n  \u003cimg alt=\"GitHub last commit\" src=\"https://img.shields.io/github/last-commit/CosmicNvim/cosmic-ui?style=flat-square\u0026logo=Github\"\u003e\n  \u003ca href=\"https://discord.gg/EwdrKzVbvJ\"\u003e\n    \u003cimg alt=\"Discord\" src=\"https://img.shields.io/discord/901609359291854899?style=flat-square\u0026logo=Discord\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## 🚀 Stellar Features\n\n_Warning: Under heavy development_\n\nCosmic-UI is a simple wrapper around specific vim functionality. Built in order to provide a quick and easy way to create a Cosmic UI experience with Neovim!\n\n- Rename floating popup \u0026 file change notification\n- Code Actions\n\n## 📷 Screenshots\n\n### Code Actions\n\n\u003cimg width=\"613\" alt=\"Screen Shot 2021-12-10 at 3 37 38 PM\" src=\"https://user-images.githubusercontent.com/3721204/145654798-84c88a69-414e-457b-b595-e76b767ea5d3.png\"\u003e\n\n### Rename Floating Popup\n\n\u003cimg width=\"498\" alt=\"Screen Shot 2021-12-10 at 4 22 28 PM\" src=\"https://user-images.githubusercontent.com/3721204/145656501-e1aec4be-c8bc-4e59-8c2f-2d99d50bbea2.png\"\u003e\n\n## 🛠 Installation\n\n```lua\n  use({\n    'CosmicNvim/cosmic-ui',\n    requires = { 'MunifTanjim/nui.nvim', 'nvim-lua/plenary.nvim' },\n    config = function()\n      require('cosmic-ui').setup()\n    end,\n  })\n```\n\n## ⚙️ Configuration\n\nYou may override any of the settings below by passing a config object to `.setup`\n\n```lua\n{\n  -- default border to use\n  -- 'single', 'double', 'rounded', 'solid', 'shadow'\n  border_style = 'single',\n\n  -- rename popup settings\n  rename = {\n    border = {\n      highlight = 'FloatBorder',\n      style = 'single',\n      title = ' Rename ',\n      title_align = 'left',\n      title_hl = 'FloatBorder',\n    },\n    prompt = '\u003e ',\n    prompt_hl = 'Comment',\n  },\n\n  code_actions = {\n    min_width = nil,\n    border = {\n      bottom_hl = 'FloatBorder',\n      highlight = 'FloatBorder',\n      style = 'single',\n      title = 'Code Actions',\n      title_align = 'center',\n      title_hl = 'FloatBorder',\n    },\n  }\n}\n```\n\n## ✨ Usage\n\n#### Rename\n\n```lua\nfunction map(mode, lhs, rhs, opts)\n  local options = { noremap = true, silent = true }\n  if opts then\n    options = vim.tbl_extend('force', options, opts)\n  end\n  vim.api.nvim_set_keymap(mode, lhs, rhs, options)\nend\n\nmap('n', 'gn', '\u003ccmd\u003elua require(\"cosmic-ui\").rename()\u003ccr\u003e')\n```\n\n#### Code Actions\n\n```lua\nmap('n', '\u003cleader\u003ega', '\u003ccmd\u003elua require(\"cosmic-ui\").code_actions()\u003ccr\u003e')\nmap('v', '\u003cleader\u003ega', '\u003ccmd\u003elua require(\"cosmic-ui\").range_code_actions()\u003ccr\u003e')\n```\n\n_More coming soon..._\n","funding_links":[],"categories":["Utility","UI","Lua"],"sub_categories":["Cursorline","OS-specific"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCosmicNvim%2Fcosmic-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCosmicNvim%2Fcosmic-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCosmicNvim%2Fcosmic-ui/lists"}