Skip to content

A clean, minimal yet powerful Neovim configuration built with Lua and packer.nvim.

License

Notifications You must be signed in to change notification settings

Hadi493/cg-nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cg-nvim

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.


Structure

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

Features

  • 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)

Installation

Clone this repo into your Neovim config directory:

git clone https://github.com/Hadi493/cg-nvim.git ~/.config/nvim

Open Neovim and let packer install everything:

:PackerSync

Keymaps

Defined 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

Requirements

  • Neovim >= 0.9 (0.11 recommended)
  • A Nerd Font (for icons)
  • Git + packer.nvim

Philosophy

"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.


License

MIT © 2025 Hadi493


About

A clean, minimal yet powerful Neovim configuration built with Lua and packer.nvim.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages