An open API service indexing awesome lists of open source software.

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

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.