{"id":13895648,"url":"https://github.com/yetone/cosmos-nvim","last_synced_at":"2025-05-16T18:07:35.600Z","repository":{"id":39487254,"uuid":"445627023","full_name":"yetone/cosmos-nvim","owner":"yetone","description":"A must-have configuration for Spacemacs users after defecting to Vim","archived":false,"fork":false,"pushed_at":"2025-03-22T05:42:55.000Z","size":1208,"stargazers_count":270,"open_issues_count":5,"forks_count":26,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-03T20:11:08.325Z","etag":null,"topics":["neovim","nvim","spacemacs","vim","vimrc"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yetone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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":null,"patreon":"yetone","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2022-01-07T19:11:39.000Z","updated_at":"2025-03-30T14:50:02.000Z","dependencies_parsed_at":"2024-04-16T02:41:02.974Z","dependency_job_id":"7e3735ac-8b57-4678-990b-c52f716eeaf4","html_url":"https://github.com/yetone/cosmos-nvim","commit_stats":{"total_commits":333,"total_committers":4,"mean_commits":83.25,"dds":"0.018018018018018056","last_synced_commit":"914228e81d7d144073ce181ffd44b19f0724ff25"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yetone%2Fcosmos-nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yetone%2Fcosmos-nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yetone%2Fcosmos-nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yetone%2Fcosmos-nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yetone","download_url":"https://codeload.github.com/yetone/cosmos-nvim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248607528,"owners_count":21132553,"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":["neovim","nvim","spacemacs","vim","vimrc"],"created_at":"2024-08-06T18:02:21.863Z","updated_at":"2025-04-12T17:40:47.463Z","avatar_url":"https://github.com/yetone.png","language":"Lua","readme":"\u003ch1 align=\"center\"\u003e🪐 My Neovim Configuration 🚀\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eA must-have configuration for Spacemacs users after defecting to Vim\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/yetone/cosmos-nvim/actions/workflows/lint.yaml\"\u003e\n        \u003cimg alt=\"Build Status\" src=\"https://github.com/yetone/cosmos-nvim/actions/workflows/lint.yaml/badge.svg\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/yetone/cosmos-nvim/actions/workflows/build.yml\"\u003e\n        \u003cimg alt=\"Build Status\" src=\"https://github.com/yetone/cosmos-nvim/actions/workflows/build.yml/badge.svg\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\nIf you want the power of **VSCode**, the interactivity of **Spacemacs**, and the text-objects of **Vim**, I highly recommend you try this configuration.\n\nThe \u003ckbd\u003eleader\u003c/kbd\u003e key is the \u003ckbd\u003espacebar\u003c/kbd\u003e.\n\nEach of our shortcut keys has a friendly text description and guide after you press the \u003ckbd\u003espacebar\u003c/kbd\u003e, so there is absolutely no need to memorize the shortcut keys, so the \u003ckbd\u003espacebar\u003c/kbd\u003e key is the key you can confidently press before everything you want to do.\n\n\u003cp align=\"center\"\u003e\n    \u003cimg width=\"800\" src=\"https://rawcdn.githack.com/yetone/figure_bed/master/nvim_screenshots/dashboard6.gif\" \u003e\n\u003c/p\u003e\n\n# Key Features\n\n1. [LSP](https://microsoft.github.io/language-server-protocol/): [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig), [lspsaga](https://github.com/glepnir/lspsaga.nvim), [lspfuzzy](https://github.com/ojroques/nvim-lspfuzzy)\n\n2. [Spacemacs](https://www.spacemacs.org/) operating experience:\n\n    a. **shortcuts**: spacemacs style keyboard shortcuts with [which-key](https://github.com/folke/which-key.nvim),\n\n    b. **ivy**: [Telescope](https://github.com/nvim-telescope/telescope.nvim) like [ivy](https://github.com/abo-abo/swiper) and [helm-swoop](https://github.com/emacsorphanage/helm-swoop)\n\n    c. **layers**: spacemacs layer abstraction\n\n    d. **customization**: like spacemacs, it can be easily customized by users in particular\n\n    e. etc.\n\n3. Looking forward to your continued exploration, [there are some screenshots](#some-screenshots)\n\n# Install\n\n## 1. Requirements\n\n### Neovim 0.8+\n\n**Only Neovim 0.8 and above are supported**, please refer to the official installation documentation of Neovim: [Install Neovim](https://github.com/neovim/neovim/wiki/Installing-Neovim)\n\n### Nerd Fonts\n\nGo to [Nerd Fonts homepage](https://www.nerdfonts.com/) to download the patched fonts you are currently using.\n\n### ripgrep\n\nUs [ripgrep](https://github.com/BurntSushi/ripgrep#installation) to search files.\n\n### Chafa\n\nMy configuration use [Chafa](https://github.com/hpjansson/chafa) to render GIF, you can install it by homebrew: `brew install chafa`\n\n## 2. Install my configuration\n\n```bash\nrm -rf ~/.config/nvim.yetone-backup; mv ~/.config/nvim{,.yetone-backup} || true\n\ngit clone --depth 1 https://github.com/yetone/cosmos-nvim.git ~/.config/nvim\n```\n\n## 3. Install your language lsp server in your nvim\n\nFor example, if you are writing `Python`, you can start by opening a Python file and running the following command:\n\n```bash\n:MasonInstall pyright\n```\n\nAnd restart nvim.\n\n# Custom Configuration\n\nIf you want to define your own configuration, you can create a file called `.cosmos-nvim.lua` in the `$HOME` root directory (the shortcut is \u003ckbd\u003eleader\u003c/kbd\u003e - \u003ckbd\u003ef\u003c/kbd\u003e - \u003ckbd\u003ee\u003c/kbd\u003e - \u003ckbd\u003ed\u003c/kbd\u003e), for example:\n\n`~/.cosmos-nvim.lua`\n\n```lua\nlocal cosmos = require('core.cosmos')\n\nreturn {\n  layers = {\n    'editor',\n    'git',\n    {\n      'ui',\n      enable_beacon = false,\n      enable_smooth_scrolling = false,\n    },\n    {\n      'completion',\n      tab_complete_copilot_first = false,\n    },\n  },\n  options = {\n    -- python3_host_prog = '~/.pyenv/versions/nvim-py3/bin/python',\n  },\n  before_setup = function()\n    -- cosmos.add_plugin('wakatime/vim-wakatime')\n  end,\n  after_setup = function()\n    -- cosmos.add_leader_keymapping('n|aw', { '\u003ccmd\u003eWakaTimeToday\u003ccr\u003e', name = 'WakaTime Today' })\n  end,\n}\n```\n\n# Themes\n\ncosmos-nvim theme colors and highlights are copied from [NvChad/base46](https://github.com/NvChad/base46) project, because [NvChad/base46](https://github.com/NvChad/base46) can't be used alone, so I can only copy the code, please tell me if there is something wrong with this way of using, many thanks to the author [siduck](https://github.com/siduck)! His [NvChad](https://github.com/NvChad/NvChad) neovim distribution is also very impressive!\n\nAll available themes are in this directory: [lua/layers/ui/themes](https://github.com/yetone/cosmos-nvim/tree/main/lua/layers/ui/themes).\n\nYou can preview themes by shortcut \u003ckbd\u003eleader\u003c/kbd\u003e - \u003ckbd\u003et\u003c/kbd\u003e - \u003ckbd\u003ep\u003c/kbd\u003e, Or directly visit [NvChad's themes page](https://nvchad.com/themes) to preview the themes:\n\n![image](https://github.com/yetone/cosmos-nvim/assets/1206493/640441e4-c971-4886-9d2e-aab5448cd292)\n\n\nYou can switch themes in this way:\n\nChange file `~/.cosmos-nvim.lua`(the shortcut is \u003ckbd\u003eleader\u003c/kbd\u003e - \u003ckbd\u003ef\u003c/kbd\u003e - \u003ckbd\u003ee\u003c/kbd\u003e - \u003ckbd\u003ed\u003c/kbd\u003e)\n\n```lua\nlocal cosmos = require('core.cosmos')\n\nreturn {\n  layers = {\n    'editor',\n    'git',\n    {\n      'ui',\n      theme = 'tokyonight' -- \u003c-- add or modify this option\n    },\n    'completion',\n  },\n  -- ...\n}\n```\n\n# Some Screenshots\n\n## Which Key like spacemacs\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://rawcdn.githack.com/yetone/figure_bed/master/nvim_screenshots/which-key2.gif\" \u003e\n\u003c/p\u003e\n\n## Fuzzy search commands like spacemacs\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://rawcdn.githack.com/yetone/figure_bed/master/nvim_screenshots/fuzzy-search-commands3.gif\" \u003e\n\u003c/p\u003e\n\n## Easymotion\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://rawcdn.githack.com/yetone/figure_bed/master/nvim_screenshots/easymotion3.gif\" \u003e\n\u003c/p\u003e\n\n## Find recent files\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://rawcdn.githack.com/yetone/figure_bed/master/nvim_screenshots/recent-files2.png\" \u003e\n\u003c/p\u003e\n\n## The status bar with lsp status\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://rawcdn.githack.com/yetone/figure_bed/master/nvim_screenshots/status-bar2.png\" \u003e\n\u003c/p\u003e\n\n## Search current buffer like emacs [helm-swoop](https://github.com/emacsorphanage/helm-swoop)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://rawcdn.githack.com/yetone/figure_bed/master/nvim_screenshots/swoop2.png\" \u003e\n\u003c/p\u003e\n\n## List symbols\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://rawcdn.githack.com/yetone/figure_bed/master/nvim_screenshots/list-symbols2.png\" \u003e\n\u003c/p\u003e\n","funding_links":["https://patreon.com/yetone"],"categories":["Lua"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyetone%2Fcosmos-nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyetone%2Fcosmos-nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyetone%2Fcosmos-nvim/lists"}