https://github.com/nvjkmr/.vim
My vim configuration files
https://github.com/nvjkmr/.vim
config neovim nvim vim vimrc
Last synced: 6 months ago
JSON representation
My vim configuration files
- Host: GitHub
- URL: https://github.com/nvjkmr/.vim
- Owner: nvjkmr
- Created: 2018-08-31T10:22:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-03-17T08:39:24.000Z (over 1 year ago)
- Last Synced: 2025-03-17T09:37:35.020Z (over 1 year ago)
- Topics: config, neovim, nvim, vim, vimrc
- Language: Vim Script
- Homepage:
- Size: 113 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Neovim Configuration
A modern Neovim configuration based on LazyVim, optimized for Ruby on Rails development. This configuration uses the Lazy package manager for plugin management and provides a powerful, IDE-like experience.
## Features
- Built on LazyVim framework
- Optimized for Ruby on Rails development
- AI assistance with Avante (Copilot Agent Mode)
- Efficient keybindings with which-key
## Requirements
Before installation, ensure you have:
1. [Neovim 0.8+](https://github.com/neovim/neovim/releases)
2. [Git](https://git-scm.com/)
3. [ripgrep](https://github.com/BurntSushi/ripgrep) - For fast file searching
4. A Nerd Font (https://www.nerdfonts.com/)
5. Ruby language server: `gem install ruby-lsp`
6. For debugging: `gem install debug`
## Installation
```bash
# Backup any existing configuration
mv ~/.config/nvim ~/.config/nvim.bak
# Clone this configuration
git clone https://github.com/nvjkmr/.vim.git ~/.config/nvim
# Start Neovim - plugins will be automatically installed on first launch
```
## Ruby on Rails Features
This configuration includes special support for Ruby on Rails development:
- Full Ruby language support via Treesitter
- Ruby LSP integration for intelligent code completion and navigation
- Rails-specific navigation with vim-rails
- Integrated testing via vim-test
- Debugging support with DAP
- Custom AI prompts for Rails development tasks
### Key Bindings for Rails Development
| Action | Shortcut |
|:-------|:---------|
| Test nearest | `tn` |
| Test file | `tf` |
| Test suite | `ts` |
| Test last | `tl` |
| Visit test file | `tv` |
| Find Rails files | `fr` |
| Find Models | `fm` |
| Find Controllers | `fc` |
| Find Views | `fv` |
## AI Integration (Avante.nvim)
Toggle AI assistant with `aa`
### Custom Rails prompts
- Explain Rails Code
- Generate Rails Model
- Generate Rails Controller
- Optimize Query
- Generate Migration
## LSP Features
| Action | Shortcut |
|:-------|:---------|
| Go to definition | `gd` |
| Go to declaration | `gD` |
| Go to Implementation | `gi` |
| Find References | `gr` |
| Rename symbol | `rn` |
| Code actions | `ca` |
| Hover documentation | `K` |
| Previous error | `[d` |
| Next error | `]d` |
| Debug | `d` |
## Health Check
Run `:checkhealth` to verify that all components are working correctly.