blog icon indicating copy to clipboard operation
blog copied to clipboard

Neovim:

Open hhstore opened this issue 2 years ago • 8 comments

related:

  • ✅ #319
  • ✅ #318
  • ✅ #386
  • ✅ #164
  • ✅ #376

hhstore avatar Sep 09 '22 10:09 hhstore

NeoVim 定制配置:

  • ✅ https://neovim.io/
  • ✅ https://github.com/neovim/neovim

🔥️ Neovim 安装:

  • ✅ https://github.com/neovim/neovim/wiki/Installing-Neovim
  • ✅️ 安装成功后, 推荐使用下述一键配置全家桶方案: NvChad. (不推荐 LunarVim).

brew install neovim

🔥️ Neovim 文档:

Neovim 官方:

  • ✅ https://neovim.io/doc/

User manual

Developer

Neovim 学习教程:

  • ✅ https://github.com/glepnir/nvim-lua-guide-zh
  • ✅ https://github.com/nanotee/nvim-lua-guide

Neovim 定制参考:

ref:

  • ✅ https://zhuanlan.zhihu.com/p/382092667
  • ✅ https://github.com/nshen/learn-neovim-lua

🔥️ Neovim 插件排行榜:

  • ✅ https://neovimcraft.com/
  • ✅️ 根据这个插件排行榜, 筛选插件, 不迷路.

hhstore avatar Sep 09 '22 10:09 hhstore

🔥️ Neovim 神仙配置方案:

  • ✅️ 推荐 NvChad, 快捷键更符合直觉. 省心方案, 一键配置.
  • 🙅🏻 不推荐 LunarVim, LSP 等快捷键, 用起来非常别扭.(影响入坑).

🍄️ NvChad 方案:

  • ✅ 建议入门就用这种一整套配置好的方案.
  • ✅ http://neovimcraft.com/plugin/siduck76/NvChad/index.html
  • ✅ https://nvchad.com/quickstart/install

git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1 && nvim

特点:

  • ⭐️⭐️⭐️⭐️⭐️
  • ✅ 配色漂亮. 目前 star 最高.

配置完成体:

nvchad 详细定制:

  • ✅ https://wusyong.github.io/posts/nvchad/

🔥️ 配色切换:

  • ✅ 主题: gruvbox
  • ✅ 这个配色非常漂亮 & 舒服!

🔥️ 安装 LSP:

  • rust
  • typescript
  • python
  • go
  • dart

hhstore avatar Sep 09 '22 10:09 hhstore

Neovim 必装插件:

👨‍💻 字体:

  • ✅ https://www.nerdfonts.com/#home

👨‍💻 插件集:

  • ✅ https://github.com/rockerBOO/awesome-neovim
  • ✅ https://neovimcraft.com/
  • ✅ https://github.com/junegunn/vim-plug

插件包管理:

  • ✅ https://github.com/wbthomason/packer.nvim

👨‍💻 SLP 插件:

coc.nvim:

  • ✅ https://github.com/neoclide/coc.nvim

LSP 插件:

  • ✅ https://github.com/neovim/nvim-lspconfig
  • ✅ https://neovim.io/doc/lsp/
image

👨‍💻 Nvim Treesitter:

  • ✅ https://github.com/nvim-treesitter/nvim-treesitter
  • ✅ https://neovim.io/doc/treesitter/

👨‍💻 必装插件:

  • ✅ https://github.com/LunarVim/LunarVim
  • ✅ https://github.com/LunarVim/Neovim-from-scratch
  • ✅ https://github.com/VapourNvim/VapourNvim

hhstore avatar Sep 09 '22 10:09 hhstore

Neovim 参考教程:

  • https://github.com/itsuki0927/SkCode
    • https://juejin.cn/post/7064009400075157535
image

hhstore avatar Sep 09 '22 10:09 hhstore

Neovim(nvim) 配置 zig 开发环境:

  • https://github.com/zigtools/zls#neovimvim8

hhstore avatar Sep 09 '22 10:09 hhstore

1

hhstore avatar Sep 09 '22 10:09 hhstore

1

hhstore avatar Sep 09 '22 10:09 hhstore

💩️ LunarVim 方案: (不推荐使用, 请选NvChad)

  • ✅ https://github.com/LunarVim/LunarVim
  • ✅ https://www.lunarvim.org/languages/#at-a-glance
  • 空格键, 作为 leader 键. 提示方便.
  • ✅️ ⭐️
  • ❎️ 虽然很热门, 但是其快捷键设计的非常反智! 远远不如 NvChad.
  • ❎️ 虽然我最开始先使用 LunarVim, 导致弃坑 NVim. 换到 NvChad, 就舒服太多.
#打开效果: 注意是 lvim, 并不是 nvim
lvim 

特点:

lunarvim 教程:

快捷键:

  • https://www.lunarvim.org/docs/beginners-guide/keybinds-overview#lsp

卸载:

  • https://www.lunarvim.org/docs/installation#uninstall

# 先切换到 bash, 再执行:

bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/uninstall.sh)

❎️ NVim 其他不推荐方案:

AstroNvim 方案:

  • ✅ https://github.com/AstroNvim/AstroNvim

其他方案:

nvim 配置:

  • https://www.bilibili.com/video/BV1y4411C7pE
  • ✅ https://github.com/theniceboy/nvim
  • https://github.com/theniceboy/nvim/blob/master/README_cn.md

nvim-config 配置:

  • ✅ https://github.com/jdhao/nvim-config
    • https://www.v2ex.com/t/826068?p=2

hhstore avatar Sep 09 '22 10:09 hhstore