A clean, minimal yet powerful Neovim configuration built with Lua and packer.nvim. Designed for speed, clarity, and hacking joy — with treesitter, LSP, telescope, and more.
cg-nvim
├── after/
│ ├── autotag.lua # Auto-close & rename tags
│ └── plugin/
│ ├── autopairs.lua # Auto-close brackets, quotes
│ ├── colors.lua # Colorscheme & highlights
│ ├── harpoon.lua # File/bookmark navigation
│ ├── lsp.lua # LSP setup (nvim-lspconfig)
│ ├── telescope.lua # Telescope fuzzy finder config
│ ├── treesitter.lua # Treesitter syntax highlighting
│ └── undotree.lua # Persistent undo tree
├── init.lua # Main entry point
├── lua/cg-config/
│ ├── init.lua # Core settings
│ ├── packer.lua # Plugin manager setup
│ └── remap.lua # Keybindings
├── plugin/
│ └── packer_compiled.lua # Auto-generated by packer
└── README.md # This file
- Treesitter for modern syntax highlighting
- LSP for autocompletion, diagnostics, and inline help
- Telescope for fuzzy finding files, buffers, and more
- Harpoon for quick navigation between files
- Autopairs + Autotag for auto-completion of brackets, quotes, and tags
- Undotree for visual undo history
- Colors.lua for a personalized colorscheme setup
(dracula)
Clone this repo into your Neovim config directory:
git clone https://github.com/Hadi493/cg-nvim.git ~/.config/nvimOpen Neovim and let packer install everything:
:PackerSyncDefined in lua/cg-config/remap.lua. Some highlights:
<leader>e→ Project Folder<leader>f→ Telescope find files<leader>s→ Telescope live grep<leader>u→ Toggle Undotree<leader>a→ Add file to Harpoon<leader>e→ Harpoon menu
- Neovim
>= 0.9(0.11 recommended) - A Nerd Font (for icons)
- Git + packer.nvim
"I like my editor like my code — minimal, elegant, and sharp."
cg-nvim is not bloated. It’s a lean foundation you can grow upon.
MIT © 2025 Hadi493