• Stars
    star
    267
  • Rank 153,260 (Top 4 %)
  • Language
    Lua
  • Created almost 3 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

小彭老师自用 NeoVim 整合包

小彭老师自用 NeoVim 整合包

本整合包内含大量实用插件,包括智能补全、语法高亮、错误提示、快速跳转、全局搜索、集成终端、文件浏览、Git 支持等。且安装方便,小彭老师自用同款,纯 Lua 配置,是您基于 NeoVim 的 IDE 不二之选。

安装方法

无需克隆本仓库,直接在命令行中输入以下命令即可安装:

curl -sLf http://142857.red/nvimrc-install.sh | bash

如果安装遇到问题,欢迎通过 GitHub issue 反映,我会尽快帮您解决。

  • 目前只支持 Linux 系统,暂时不支持 MacOS 等系统。
  • 请勿以 root 身份运行,否则会为 root 安装 nvim 插件而不是当前用户,插件安装后仅对当前用户有效。
  • 您的系统中无需事先安装有 nvim,本整合包内部已经自带了最新版 nvim 的 AppImage,可无依赖直接运行。
  • 无需连接 GitHub,所有插件全部已经预下载在整合包内部,只有 142857.red 一次联网,无需 GitHub 加速器。
  • 为了能够使用补全,会为您安装如 clangd 一类的包,但即使其中一个安装失败,也不影响其他语言和编辑器整体的使用。
  • 安装脚本运行中可能产生一些冗余错误信息,属于正常现象,不影响使用,请忽视他们。

安装完成后,输入 nvim 即可使用,按 Shift+Z 或 :wqa 即可退出。

第一次启动时,可能需要花一些时间下载第三方插件数据包,请耐心等待。如果不等待,可能会部分语言的失去语义高亮功能。

旧版本 Vimrc

本分支为最新 NeoVim 版插件整合包,对于来自 BV1H44y1V7DW 视频想领取老版 Vim 插件的同学,请移步 main 分支

支持的 Linux 发行版

  • Arch Linux(亲测可用)
  • Ubuntu (亲测 20.04 可用)
  • Manjano Linux (理论可行,没有测试过)
  • Debian (理论可行,没有测试过)
  • Kali Linux (理论可行,没有测试过)
  • Raspbian (理论可行,没有测试过)
  • Fedora (感谢 @justiceeem 大佬)
  • OpenSUSE (感谢 @sleeplessai 大佬)
  • CentOS (感谢 @xxy-im 大佬)
  • Deepin (感谢 @zhangasia 大佬)
  • MacOS (暂未支持,还在开发中)

脚本会创建或修改的文件

/usr/bin/nvim
/usr/bin/.nvim.appimage.noextract
~/.config/nvim
~/.local/share/nvim
  • 如果脚本发现您已经存在 ~/.config/nvim 目录,则会将其备份至 ~/.config/.nvim.backup.随机数字
  • 如果脚本发现您已经存在 /usr/bin/nvim 可执行文件,且版本不足 0.9.1,则会用本整合包内置的 nvim.AppImage 替换他。

欲了解本整合包安装与打包原理,请看 compile.sh

内含插件

完整插件列表,请查看 lua/archvim/plugins.lua

默认启用的语法高亮

{"c", "cpp", "python", "cmake", "lua", "rust", "help", "vim", "cuda", "bash", "vue", "markdown", "javascript", "typescript", "html", "css", "json", "yaml"}

默认安装的 LSP 服务器(用于补全)

{"clangd", "cmake", "pyright", "lua_ls", "rust_analyzer"}

可以通过执行 :TSInstall 和修改 lua/archvim/config/lspconfig.lua 来安装更多语法高亮和智能补全。

以下为小彭老师自己看的

通过运行 ./compile.sh 得到 /tmp/nvimrc-install.sh 这个一键安装脚本(约 20 MiB)后,我会把他发布到 142857.red。

More Repositories

1

co_async

C++20 Coroutine Library for Education Purpose (WIP)
C++
167
star
2

mallocvis

allocation visualization in svg graph
C++
120
star
3

co_http

小彭老师特意从零开始研发的一款教学用,基于 C++17 回调函数的异步 HTTP 服务器
C++
72
star
4

babyjson-demo

Education purpose C++17 JSON parser, teach you how to parsing string and numeric literials, as well as using std::variant and std::optional elegently.
C++
62
star
5

debug-hpp

printing everything including STL containers without pain 🚀
C++
38
star
6

nvim-gpt

Integrated ChatGPT + Bing AI in NeoVim just for neo-pioneers like you :)
Python
37
star
7

minilog

Mini Logging Library with C++20 education purpose
C++
29
star
8

parallel-languages-benchmark

鉴定网络热门并行编程框架 - 性能测评(附小彭老师锐评)已评测:Taichi、SyCL、C++、OpenMP、TBB、Mojo
C++
29
star
9

constl

Concurrent / Constexpr STL (WIP), aimed to replace TBB and Boost
C++
26
star
10

reflect-hpp

Single header static reflection library for C++14 and above
C++
22
star
11

archibate

16
star
12

sycltutor

小彭老师推出 SyCL 2020 课程(施工中,日后会在直播中放出)
C++
15
star
13

lualine-time

Time and date display extension for lualine.nvim
Lua
13
star
14

genius.nvim

Blazing fast 🚀 code completion in NeoVim powered by 🤖 GPT-3.5-Turbo
Lua
13
star
15

ptina

Path tracing engine based on Taichi
Python
10
star
16

three-body-opengl

three-body simulation visualized via OpenGL
C++
10
star
17

vartmplandfold-example

Experiment code for my video course: variadic template, parameter pack, and fold expression
C++
9
star
18

newos

A hobby unix-like operating system
C
7
star
19

sfinae-example

type_traits and sfinae example code
C++
6
star
20

taichi_works

My homeworks of Taichi
Python
6
star
21

IOGPT

ChatGPT that can operate on your local file system, search Google and browse website.
Python
6
star
22

NBodySolver

n-body gravity simulation of the solar system (work in progress)
C++
5
star
23

opengl_mpm

MPM method implemented in OpenGL compute shader
C++
5
star
24

taichi-voxels

Python
4
star
25

hermes

Microbenchmark framework
C++
4
star
26

jsp-chess

Online Inter-person Chinese Chess based on JSP
Java
3
star
27

qrcp

Copy files between Mobile Phone & PC via a simple QRCode (same WLAN required)
Python
3
star
28

osys

A hobby OS kernel
C
3
star
29

key2joy

virtual joystick for linux: convert keyboard strokes to enumate a joystick
C
3
star
30

qdanmu

基于PyQt的B站弹幕机,支持Linux/Windows/MacOS系统
Python
3
star
31

ezprof

Easy and intuitive Python profiling API
Python
2
star
32

Matrix-II

一个运行于x86架构的微内核
C
2
star
33

cuda_aero_lbm

A toy 3D LBM solver in CUDA
C
2
star
34

gesture

A 2D toy physics engine
Python
2
star
35

pinyin-cpp

C++ Pinyin Library
C++
2
star
36

Lake-OS

A Hobby OS with an microkernel - lxL4
C
2
star
37

UltraEnc-X

一个强大的支持中文等多国语言的加密算法
Python
2
star
38

ChaOS

A hobby operating system based on my microkernel
C
2
star
39

h2os

A hobby Operating System
C
1
star
40

pysobol

Efficient Sobol sequence generator with NumPy
Python
1
star
41

grapher

A Multi-purpose Math Grapher / Visualizer
HTML
1
star
42

PyAsm

A Python Assembler
Python
1
star
43

yyos

Assembly
1
star
44

facereco

Python
1
star
45

archibate.github.io

Archibate's personal blog (WIP)
JavaScript
1
star
46

online-js

Online Javascript programming
HTML
1
star
47

javaee-homework

Archibate's JavaEE homework
Java
1
star
48

thebindingofnoita

(WIP)
1
star
49

poczfx

proof-of-concept zfx v4 (WIP)
C++
1
star
50

xijiajia

论如何把C++变成中文编程语言
C
1
star
51

sinx

Assembly
1
star
52

newton

A 2D Physics Engine in JavaScript
JavaScript
1
star
53

zinc-header-only-library

A header-only container library, from math vector to any and copiable_unique_ptr
C++
1
star