CosmicNvim/CosmicNvim

website github github
preconfigured-configuration
star 781
alert-circle 4
users 17
git-branch 64
CREATED

2021-10-19

UPDATED

2 months ago


CosmicNvim is a lightweight and opinionated Neovim config for web development, specifically designed to provide a 💫 COSMIC programming experience!

🚀 Stellar Features

Native LSP

Full featured native LSP functionality!

  • 📘 Go-to definition
  • 🔍 Find references/type def/declaration
  • 💡 Code actions
  • 🚨 Statusline diagnostics
  • 🔧 Formatting/linting thanks to null-ls

Additional features

While CosmicNvim is geared specifically toward TypeScript/JavaScript development, it should be able to provide a great experience with any LSP supported language.

🛠 Installation

Quick guide

Prerequisites

  • Neovim (+0.8.0)
  • Node.js
  • prettierd (for prettier formatting w/null_ls, optional)
  • eslint_d (for eslint w/null_ls, optional)

Install

  # move to config dir
  cd ~/.config
  # back up current config
  cp -r nvim nvim.backup
  # clone repository
  git clone git@github.com:CosmicNvim/CosmicNvim.git nvim
  # open nvim and install plugins
  nvim +CosmicReloadSync

Additional CosmicNvim installation details.

Additional LSP server installation details.

CosmicNvim uninstallation details.

🎨 Theming

CosmicNvim comes with first-class support for the following themes:

Additional Screenshots

⚙️ Configuration

General Info

Cosmic configurations

Add additional vim options

✨ Cosmic Commands

Update CosmicNvim

:CosmicUpdate

By default, this will assume the Cosmic git directory is placed at vim.fn.stdpath('config'), i.e. ~/.config/nvim. Otherwise, you may define the shell environment variable COSMICNVIM_INSTALL_DIR.

Clear cache and sync plugins

:CosmicReloadSync

Useful for testing themes or plugins on the fly!

Reload user config

:CosmicReload

Useful for non-plugin related changes such as editor settings or mappings.

🗺 Default Mappings

File navigation

File explorer

Terminal

LSP

Other

📷 Screenshots

Statusline

Autocomplete

Rename

Rename change notification

Code Actions

Hover

See more screenshots