69 lines
1.7 KiB
Markdown
69 lines
1.7 KiB
Markdown
# Neovim Configuration
|
|
|
|
A modern Neovim configuration using lazy.nvim for plugin management.
|
|
|
|
## Installation
|
|
|
|
1. Make sure you have Neovim 0.8+ installed
|
|
2. Clone or copy the `init.lua` file to your Neovim configuration directory:
|
|
```bash
|
|
# For Linux/macOS
|
|
cp init.lua ~/.config/nvim/
|
|
|
|
# Or if using this directory structure
|
|
# The init.lua is already in ~/.vim/
|
|
```
|
|
|
|
3. Start Neovim - lazy.nvim will automatically install all plugins on first launch
|
|
|
|
## Plugins Included
|
|
|
|
- **lazy.nvim** - Plugin manager
|
|
- **CtrlP** - Fuzzy file finder (`<Ctrl-P>` to open)
|
|
- **lualine** - Modern status line
|
|
- **gitsigns** - Git change indicators
|
|
- **indent-blankline** - Visual indent guides
|
|
- **bufferline** - Tab-like buffer management
|
|
- **tokyonight** - Beautiful colorscheme
|
|
- **todo-comments.nvim** - TODO comment highlighting
|
|
|
|
## Key Features
|
|
|
|
- Line numbers and relative line numbers enabled
|
|
- Syntax highlighting enabled
|
|
- 2-space indentation
|
|
- Smart case searching
|
|
- True color support
|
|
- Git integration with visual indicators
|
|
|
|
## Usage
|
|
|
|
### File Navigation
|
|
- `<Ctrl-P>` - Open CtrlP fuzzy finder
|
|
- `:e filename` - Open file
|
|
- `:bn` / `:bp` - Next/previous buffer
|
|
|
|
### Git
|
|
- Git changes are automatically highlighted in the gutter
|
|
- `+` for additions, `~` for changes, `_` for deletions
|
|
|
|
### TODO Management
|
|
The configuration highlights TODO comments in your code:
|
|
- `TODO:`, `FIXME:`, `HACK:`, `WARN:`, `PERF:`, `NOTE:`, `TEST:`
|
|
|
|
## Customization
|
|
|
|
Edit `init.lua` to customize:
|
|
- Plugin configurations
|
|
- Key mappings
|
|
- Neovim settings
|
|
- Colorscheme options
|
|
|
|
## Troubleshooting
|
|
|
|
If plugins don't load:
|
|
1. Check Neovim version: `:version`
|
|
2. Check plugin status: `:Lazy`
|
|
3. Update plugins: `:Lazy update`
|
|
4. Check for errors: `:messages`
|