Skip to content

A blazing fast, fully-featured Neovim configuration. It includes LSP support, debugging (DAP), AI assistance (Copilot), and a refined UI, all managed by lazy.nvim ✨

Notifications You must be signed in to change notification settings

Ashwani1330/neovimrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡Neovim Configuration

A blazing fast, fully-featured Neovim configuration built for Linux and macOS. It includes LSP support, debugging (DAP), AI assistance (Copilot), and a refined UI, all managed by lazy.nvim.

Important

🪟 Windows Users: Please check the windows branch for a configuration optimized for PowerShell and Windows build tools.

Screenshot

image

📋 Requirements

Ensure your system has the necessary build tools and runtimes.

1. Install Neovim & Tools

Ubuntu / Debian:

sudo apt update
sudo apt install neovim build-essential ripgrep fd-find git

Fedora / RHEL:

sudo dnf install neovim gcc make ripgrep fd-find git

Arch Linux:

sudo pacman -S neovim base-devel ripgrep fd git

macOS (Homebrew):

brew install neovim ripgrep fd gcc

2. Install Language Runtimes

For Mason.nvim to install language servers (LSP) and formatters, you need:

  • Node.js (npm): Required for pyright, ts_ls, bashls, etc.
  • Python: Required for debugpy and Python tooling.
  • Rust (Cargo): Optional, but recommended for compiling some tools.

🚀 Installation

1. Back up existing config

mv ~/.config/nvim ~/.config/nvim.bak
mv ~/.local/share/nvim ~/.local/share/nvim.bak

2. Clone the repository

git clone [https://github.com/ashwani1330/neovimrc.git](https://github.com/ashwani1330/neovimrc.git) ~/.config/nvim

3. Launch Neovim

Open nvim in your terminal. lazy.nvim will automatically bootstrap and install all plugins.

  • Wait for the dashboard to appear.
  • Run :checkhealth to verify everything is green.

⌨️ Keybindings

Leader Key: Space

CLICK TO VIEW ALL KEYBINDINGS

📂 File & Window Management

Key Action
<leader>pv Toggle File Explorer (NvimTree)
<leader>e / - Edit Parent Directory (Oil.nvim)
<leader>w Save File
<leader>q Quit
<leader>Q Force Quit All
Ctrl+h/j/k/l Navigate between splits
Ctrl+Arrows Resize splits
<C-\> Toggle Terminal
<leader>fb Switch Buffers (Telescope)

🧠 LSP (Code Intelligence)

Key Action
gd Go to Definition
K Hover Documentation
<leader>vrr Find References
<leader>vca Code Action
<leader>vrn Rename Symbol
<leader>vd Show Diagnostics (Float)
<leader>vws Workspace Symbols
[d / ]d Previous / Next Diagnostic
<leader>f Format File

🔍 Telescope (Search)

Key Action
<leader>ff Find Files
<leader>fg Live Grep (Search text)
<leader>fr Recent Files
<leader>fw Grep String (Word under cursor)
<leader>fc Fuzzy find in current buffer
<leader>fs Document Symbols
<leader>px Project/Telescope Commands
<leader>fh Help Tags
<leader>fk Keymaps

🤖 AI (Copilot)

Key Action
Ghost Text
Ctrl+J Accept Suggestion
Ctrl+L Accept Next Word
Ctrl+H Dismiss Suggestion
Alt+] Next Suggestion
Alt+[ Previous Suggestion
Chat Agent
<leader>aa Toggle Chat Sidebar
<leader>aq Quick Chat Input
<leader>ae Explain Code (Visual)
<leader>af Fix Bug (Visual)
<leader>at Generate Tests (Visual)

🌲 Git (Fugitive & Gitsigns)

Key Action
<leader>gs Git Status
<leader>gc Git Commit
<leader>gp Git Push
<leader>gP Git Pull
<leader>gd Git Diff
<leader>gl Git Log
]c / [c Next / Previous Hunk
<leader>hs Stage Hunk
<leader>hr Reset Hunk
<leader>hp Preview Hunk
<leader>tb Toggle Blame Ghost Text

🐛 Debugging (DAP)

Key Action
F5 Start / Continue
F10 Step Over
F11 Step Into
F12 Step Out
<leader>db Toggle Breakpoint
<leader>dB Conditional Breakpoint
<leader>du Toggle Debug UI
<leader>dr Open REPL
<leader>dt Terminate

🛠️ Utility & Extra

Key Action
<leader>u Toggle UndoTree
<leader>xx Toggle Trouble (Diagnostics)
<leader>h Clear Search Highlight
<leader>r Replace word under cursor
Alt+j/k Move lines up/down

🎨 Features & Plugins

  • Plugin Manager: lazy.nvim
  • LSP: Mason, Mason-LSPConfig, nvim-lspconfig
  • Completion: nvim-cmp, LuaSnip
  • Formatting: Conform.nvim
  • Explorer: Oil.nvim (Buffer-like file editing) & Nvim-Tree
  • Fuzzy Finder: Telescope.nvim (with fzf-native for speed)
  • Git: Gitsigns & Fugitive
  • AI: Github Copilot & CopilotChat.nvim
  • Debugging: nvim-dap & nvim-dap-ui

🔧 Troubleshooting

1. "Make" not found / Telescope FZF error Ensure you have make and gcc installed (see Requirements). Then run:

:Lazy build telescope-fzf-native.nvim

2. Treesitter errors on startup If syntax highlighting is missing, run:

:TSUpdate

3. Icons are missing or look weird Make sure you are using a Nerd Font in your terminal.

About

A blazing fast, fully-featured Neovim configuration. It includes LSP support, debugging (DAP), AI assistance (Copilot), and a refined UI, all managed by lazy.nvim ✨

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages