{"repo":"gin-18/nvim","free":true,"listed":false,"github":"https://github.com/gin-18/nvim","clone":"git clone https://github.com/gin-18/nvim.git","description":"my neovim config for web development.","language":"Lua","stars":42,"topics":["docer-compose","dockerfile","javascript","markdown","typescript","vue3"],"license":null,"category":"productivity","readme_excerpt":":warning: Note: 配置已修改，但是 README 未更新。 Neovim 配置 1. 依赖 使用配置之前确保安装了以下软件包。 Arch Linux 使用 pacman 和 yay 安装依赖 2. 使用本配置 3. 快捷键 快捷键 描述 ------------------- -------------------------------- s 保存 shift s 保存退出 shift h 光标移动到行首 shift l 光标移动到行尾 shift j 光标向下移动5行 shift k 光标向上移动5行 space s l 左右分屏，光标在左分屏 space s j 上下分屏，光标在下分屏 shift alt h 光标移动到左分屏 shift alt j 光标移动到下分屏 shift alt k 光标移动到上分屏 shift alt l 光标移动到右分屏 shift up 上下分屏时，增加分屏高度 shift down 上下分屏时，减少分屏高度 shift left 左右分屏时，增加分屏宽度 shift right 左右分屏时，减少分屏宽度 space y c 在可视模式下，复制到系统剪贴板 space n h 取消搜索结果的高亮 space e v 打开 $MYVIMRC 在 lua/core/keymaps.lua 文件中可以修改快捷键的配置。 4. 基本功能 :necktie: 插件管理器 - lazy.nvim 插件管理器地址 ：folke/lazy.nvim :wrench: lsp 支持 - nvim-lspconfig 插件地址 ：neovim/nvim-lspconfig 快捷键 描述 ----------------- -------------------------- space g d 跳转到变量或者函数定义处 space g r 跳转到变量或者函数引用处 space r n 变量或者函数重命名 space c f 代码格式化 space c a 列出 code action space d t 预览 diagnostic space d n 下一处 diagnostic space d p 上一处 diagnostic 在 lua/plugins/nvim-lspconfig.lua 文件中可以修改配置。 Demo (click to expand) :computer: 自动补全 - nvim-cmp 插件地址 ：hrsh7th/nvim-cmp 快捷键 描述 ------------------ ---------------------------- ctrl n 向下高亮补全项 ctrl p 向上高亮补全项 ctrl j 代码片段跳到下一个标记处 ctrl k 代码片段跳到上一个标记处 enter 选择高亮的补全项 在 lua/plugins/nvim-cmp.lua 文件中可以修改配置。 Demo (click to expand) 内容补全 命令行补全 [ \"/\", \"?\" ] 查找补全 :books: 代码片段 - luasnip 插件地址 ：L3MON4D3/LuaSnip 在 my-snippets/snippets 目录下可以添加自定义的代码片段。 添加完成需要在 my-snippets/package.json 文件中引入自定义的代码片段。 Demo (click to expand) 代码片段的写法和 vscode 的代码片段的写法一样。 :telescope: 模糊搜索 - te","default_branch":null,"files":null,"tree":[],"storefront":"/r/gin-18","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gin-18/nvim/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}