Apache License 2.0

项目介绍

Alexis12119/nvim-config 是一个托管在 GitHub 上的开源项目,主要使用 Lua 编写,采用 Apache License 2.0 许可证,目前获得 424 个 Star、37 次 Fork。

仓库全名
Alexis12119/nvim-config
开源许可证
Apache License 2.0
Star 数
424
Fork 数
37

README 摘要

🚀 Professional IDE-Class Neovim Configuration A sophisticated Neovim setup that combines LazyVim's powerful foundation with NvChad's polished UI components, creating a professional IDE-class experience with AI-powered coding, extensive language support (15+ languages), and advanced workflow automation. Perfect for developers seeking a unified environment for web development, backend systems, mobile apps,…

完整内容见 GitHub 原始 README 或本页 。

常见问题

nvim-config 用什么语言开发?

主要使用 Lua 编写,采用 Apache License 2.0 许可证,目前有 424 个 Star。

nvim-config 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 nvim-config 的源码?

可以直接克隆仓库:git clone https://github.com/Alexis12119/nvim-config.git,默认分支为 main;安装与运行步骤见仓库 README。

nvim-config 最近还在维护吗?

仓库最近一次更新为 7月24日,当前没有未关闭的 Issue;Star 数为 424,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Perfect for developers seeking a single, unified environment for web development, backend systems, mobile apps, and competitive programming.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

语言占比

Lua
PowerShell
Shell
Vim Script
Vim Snippet

README

🚀 Professional IDE-Class Neovim Configuration

A sophisticated Neovim setup that combines LazyVim’s powerful foundation with NvChad’s polished UI components, creating a professional IDE-class experience with AI-powered coding, extensive language support (15+ languages), and advanced workflow automation.

Perfect for developers seeking a unified environment for web development, backend systems, mobile apps, competitive programming, and real-time collaboration.

Installation

Prerequisites

In windows, you can use scoop to install them.

Linux/macOS
bash <(curl -s https://raw.githubusercontent.com/Alexis12119/nvim-config/main/installer/install.sh)
Windows (PowerShell)
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Invoke-WebRequest https://raw.githubusercontent.com/Alexis12119/nvim-config/main/installer/install.ps1 -UseBasicParsing |
Invoke-Expression

Manual Install

  1. Backup your current Neovim configuration:

    # Linux/macOS
    mv ~/.config/nvim ~/.config/nvim.backup
    mv ~/.local/share/nvim ~/.local/share/nvim.backup
    
    # Windows
    mv $env:LOCALAPPDATA\nvim $env:LOCALAPPDATA\nvim.backup
    mv $env:LOCALAPPDATA\nvim-data $env:LOCALAPPDATA\nvim-data.backup
    
  2. Clone this configuration:

    # Linux/macOS
    git clone https://github.com/Alexis12119/nvim-config.git ~/.config/nvim
    
    # Windows
    git clone https://github.com/Alexis12119/nvim-config.git $env:LOCALAPPDATA\nvim
    
  3. Start Neovim and let Lazy install the plugins:

    nvim
    

Features

Neovim

  • Hardtime - Breaks your vim bad habits
  • Precognition - Assits you in your vim journey

🤖 AI & Coding

  • Supermaven - Primary AI-powered code completion with blazing fast suggestions
  • OpenCode (Disabled) - Alternative AI assistant available but disabled for performance
  • LuaSnip - Snippet engine with VSCode-compatible snippet support
  • Mini Comment/Surround - Quick commenting and surrounding operations
  • Yanky - Enhanced yank/paste with ring buffer and system clipboard integration
  • Refactoring - Advanced code refactoring tools with LSP-powered transformations

🔧 Development Tools

  • Debug Adapter Protocol - Integrated debugging
  • Telescope - Fuzzy finder and picker
  • Aerial - Code outline/symbols
  • Inc-rename - Incremental renaming
  • Dial - Enhanced increment/decrement

🎨 UI & Experience

  • Indent Blankline - Visual indentation guides
  • Treesitter Context - Context-aware code display
  • Noice - Modern UI for commands and notifications
  • Which-key - Keybinding helper
  • Snacks.nvim - Modern UI components and utilities

🌐 Language Support

CSV/TSV
  • csvview.nvim - CSV/TSV file editing
Web Development
  • TypeScript/JavaScript - Full TS/JS support with Volar/VTSLS
  • Vue - Vue.js framework
  • Svelte - Svelte framework
  • Astro - Astro framework
  • Tailwind CSS - Utility-first CSS
  • HTML/CSS/JSON/YAML - Web standards
Backend & Systems
  • Python - Python development with venv-selector
  • Go - Go language support
  • Rust - Rust programming with rustaceanvim
  • Java - Java development with nvim-java and Spring Boot support
  • C/C++ - C/C++ with Clangd
  • C#/.NET - .NET development with easy-dotnet.nvim
  • Kotlin - Kotlin language
  • Ruby - Ruby development
  • PHP - PHP development with Laravel framework support
  • Zig - Zig language
Data & DevOps
  • SQL - Database queries with dadbod-grip suite
  • Docker - Container support
  • Git - Version control with Diffview integration
  • Prisma - Database ORM
  • CMake - Build system
  • Toml - Configuration files
Documentation & Markup
  • Markdown - Documentation with preview
  • Typst - Modern typesetting

🛠️ Tooling

  • Prettier - Code formatting
  • ESLint - JavaScript linting
  • Neoconf - Project configuration
  • Project.nvim - Project management with custom patterns
  • Rest - HTTP client with kulala.nvim
  • Dot - Graphviz support
  • Neotest - Testing framework with multi-language adapters

🚀 Advanced Workflow Features

Project Bootstrap System (<leader>P)
  • 20+ Framework Templates: Next.js, Laravel, Spring Boot, Flutter, React Native, and more
  • Interactive Setup: Smart dependency management and configuration
  • Git Integration: Automatic repository initialization with sensible defaults
  • Cross-platform: Works seamlessly on Linux, macOS, and Windows
Advanced Code Runner (<leader>ce)
  • Multi-language Support: C/C++, Python, JavaScript, Go, Rust, Java, C#, PHP, and more
  • Compilation Modes: Standard, debug, and competitive programming modes
  • Smart Error Handling: Terminal integration with intelligent error detection
  • Quick Integration: Seamless quickfix list navigation
Real-time Collaboration
  • live-share.nvim: Live pair programming with cursor synchronization
  • Team Type: You can use it for pair programming or note-taking
Performance & Utilities
  • Competitive Programming: cphelper.nvim for contest preparation
  • Smart Navigation: Tmux integration with intuitive Ctrl+h/j/k/l movement
  • Project-wide Linting: ESLint integration with quickfix navigation
  • Variable Substitution: Dynamic command execution with placeholder replacement

Configuration

Architecture Overview

This configuration uses a hybrid architecture combining the best of both worlds:

  • LazyVim Foundation: Provides the core functionality, plugin management, and extensive language extras system (42+ extras pre-configured)
  • NvChad UI Components: Delivers polished statuslines, tablines, and theme system with Base46 color schemes
  • Custom Layer: Adds project management, advanced tooling, and workflow automation

Managing Language Support

This configuration includes extensive language support through LazyVim Extras. If you’re seeing too many notifications about missing language servers or tools, you can easily remove unwanted language integrations:

Using LazyExtras UI
  1. Open LazyExtras: :LazyExtras or press <leader>le
  2. Navigate to the language/category you want to remove
  3. Press x to toggle the extra off (it will be marked with ✗)
  4. Restart Neovim to apply changes
Direct Configuration

Edit lazyvim.json in your config root and remove unwanted extras from the list.

Common Extras to Consider Removing
  • Web Development: TypeScript, Vue, Svelte, Astro, Tailwind CSS
  • Backend Languages: Java, C#, PHP, Rust, Go, Kotlin, Ruby, Zig
  • Database Tools: SQL, Prisma, vim-dadbod suite
  • Framework Support: Laravel, Spring Boot, Flutter-tools

Theme

  • Theme: Custom GitHub Dark Dimmed with extensive language-specific highlighting
  • Telescope Style: Borderless
  • Custom Highlights: Detailed syntax highlighting for Python, Java, JavaScript/TypeScript, Go, Rust, PHP, Dart, C#, and more
Changing Colorscheme

To change the colorscheme, edit lua/config/globals.lua and modify the vim.g.colorscheme value:

Available themes:

  • tokyonight - Default modern dark theme
  • nvchad - Base46 NvChad themes

Example:

vim.g.colorscheme = "tokyonight"  -- Switch theme

Performance Optimizations

  • Fast Response Time: 100ms updatetime for responsive UI updates
  • Semantic Tokens Disabled: Improved performance for large files
  • Lazy Loading: Intelligent plugin loading with custom triggers
  • Optimized File Detection: 5-second periodic file change monitoring
  • Auto-save Configuration: Saves on focus lost and buffer leave
  • Memory Management: Optimized settings for better resource usage

Key Customizations

  • Custom LSP Settings: Tailored configurations for each language server
  • AI Integration: Supermaven for intelligent code completion
  • Project Management: Custom patterns for intelligent project detection
  • Database Tools: Integrated vim-dadbod suite for database management
  • Smart Search: Dynamic search highlighting with intelligent toggling

Disabled Features

The following plugins are intentionally disabled to avoid conflicts:

  • nvim-tree - File explorer (disabled)
  • oil.nvim - Buffer explorer (disabled)
  • opencode - AI assistant (disabled, Supermaven used instead)

Structure

~/.config/nvim/
├── installer/          # Installation scripts
│   ├── install.ps1     # PowerShell installer
│   ├── install.sh      # Shell installer
│   └── install_requirements.ps1
├── lua/
│   ├── config/         # Core configuration (options, keymaps, autocmds)
│   │   ├── statusline/ # Custom statusline configuration
│   │   └── tabufline/  # Tabline configuration
│   ├── plugins/        # Plugin configurations
│   │   ├── ai/         # AI-related plugins
│   │   ├── collaboration/ # Real-time collaboration
│   │   ├── colorscheme/ # Theme configuration
│   │   ├── dap/       # Debug Adapter Protocol (DAP) configurations
│   │   ├── editor/     # Core editor plugins
│   │   ├── fun/        # Fun and experimental plugins
│   │   ├── integration/ # Integration plugins
│   │   ├── langs/      # Language-specific tools
│   │   ├── lsp/        # LSP configurations and settings
│   │   │   └── settings/ # Language-specific LSP settings
│   │   ├── ui/         # User interface plugins
│   │   └── util/       # Utility plugins
│   ├── themes/         # Custom themes (GitHub Dark Dimmed)
│   ├── chadrc.lua      # NvChad configuration
│   └── highlights.lua  # Custom syntax highlighting
├── snippets/           # Code snippets
│   ├── snipmate/       # Snipmate format snippets
│   └── vscode/         # VSCode format snippets
├── README.md
├── init.lua           # Entry point
├── lazyvim.json       # LazyVim extras configuration
├── .luarc.json        # Lua language server config
├── ginit.vim          # GUI Neovim configuration
├── stylua.toml        # StyLua formatter configuration
└── LICENSE            # License file

Custom Additions

  • Compiler.nvim - Code compilation and task management
  • Live Share - Real-time collaboration for pair programming
  • Database Tools - vim-dadbod suite for database management
  • Framework Support - Laravel, Spring Boot, Flutter-tools, .NET Framework
  • Competitive Programming - cphelper.nvim
  • Custom Theme - Extensive GitHub Dark Dimmed customization

Enhanced Features

  • Project Management - Custom project detection patterns
  • Python Development - venv-selector integration
  • Testing - Multi-language neotest adapters
  • Performance - Optimized Neovim options for better responsiveness

Intentionally Disabled

  • nvim-tree and oil.nvim (file explorers)
  • opencode plugins (using Supermaven instead)

Customization Guide

Adding New Plugins

  1. Create a new file in lua/plugins/ directory
  2. Follow the LazySpec format used in existing plugin files
  3. Use the import system in lua/plugins/init.lua

Modifying Theme

  • Edit lua/themes/github_dark_dimmed.lua for theme colors
  • Modify lua/highlights.lua for additional syntax highlighting
  • Language-specific highlights are defined in the theme file

LSP Customization

  • Language-specific LSP settings are in lua/plugins/lsp/settings/
  • Create new files for additional language servers

Troubleshooting

Common Issues

  • Plugin not loading: Check if plugin is enabled in configuration
  • LSP not starting: Verify language server is installed and configured
  • Theme issues: Ensure terminal supports true colors (24-bit)
  • Performance: Check for heavy plugins or large files

Getting Help

  • Check LazyVim documentation for base functionality
  • Review plugin-specific documentation in their repositories
  • Open an issue on this repository for configuration-specific problems

Contributing

Feel free to submit issues and enhancement requests!

  1. Fork repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Credits

  • LazyVim - Core foundation and plugin management system
  • NvChad - UI components, statuslines, and Base46 theme system
  • All the plugin authors and contributors who make this configuration possible

评论

暂无评论