neovim config
lua/cosmic | ||
.gitignore | ||
init.lua | ||
LICENSE | ||
readme.md |
💫 CosmicNvim
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
- ⚠️ Linting thanks to eslint
- 🔧 Formatting thanks to efm
Additional features
- Amazing colors thanks to tokyonight.nvim
- Enhanced syntax highlighting with nvim-treesitter
- Hand-built statusline with galaxyline
- Explore files with nvim-tree
- Fuzzy finder and some LSP actions with Telescope
- Floating terminal with vim-floaterm
- Auto LSP installation with nvim-lsp-installer
- Autocompletion provided by nvim-cmp
- Snippet support via LuaSnip
- Session management with auto-session
- Additional custom highlighting
- Floating windows for references, renaming, diagnostics, code actions and more!
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.6.0)
- Node.js
- prettierd (for prettier formatting w/efm, optional)
- eslint_d (for eslint w/efm, optional)
Install
$ cd ~/.config
$ git clone git@github.com:mattleong/CosmicNvim.git nvim
$ nvim .
Additional Cosmic installation details.
Additional LSP server installation details.
Configuration
Treesitter Support
Enter :TSInstall
followed by to see your options for languages with treesitter support
Default Mappings
📷 Screenshots
Statusline
Autocomplete
