https://github.com/elflare/elflare-lazyvim
A simple but useful LazyVim Config
https://github.com/elflare/elflare-lazyvim
config lazyvim neovim vim
Last synced: 2 months ago
JSON representation
A simple but useful LazyVim Config
- Host: GitHub
- URL: https://github.com/elflare/elflare-lazyvim
- Owner: Elflare
- Created: 2024-11-11T02:15:27.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-01-14T02:46:48.000Z (4 months ago)
- Last Synced: 2025-03-17T11:21:45.797Z (2 months ago)
- Topics: config, lazyvim, neovim, vim
- Language: Lua
- Homepage:
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Elflare's nvim-config
## Shortcut Key
### Global
| 快捷键 | 功能 | 备注 |
| ---------------- | ---------------------------------- | ------------ |
| `` | 撤销 | i 模式下也可 |
| `J` | 将下行的缩回来 |
| `K` | 换行 |
| `H` | home |
| `L` | end |
| `` | home | insert mod |
| `` | end | insert mod |
| `nh` | 去高亮 |
| `v` | 搜中文 |
| `dH` | 从该行往前删到头 |
| `dL` | 从该行往后删到尾 |
| `gy` | 复制全部 |
| `vu` or `Ctrl+/` | 注释 |
| ` ` | 替换原来的 , 用来输入特殊字符 |
| ` - ` | 用 ` 到 ` 来切换 tab |### save-session
配置文件在 `plugins.save-session`
| 快捷键 | 功能 | 备注 |
| ------------------ | ----------- | ------------------------ |
| ` s1 - s3` | 保存session |
| ` l1 - l3` | 读取session | 每次打开自动会读取 s1 的 |### NvimTree
| 快捷键 | 功能 | 备注 |
| ----------------------------------- | -------------------------- | ---------------- |
| ` e` | 切换 `NvimTree` 的窗口开关 |
| ` o` | 打开 `NvimTree` |
| `` | 切换 `NvimTree` 的窗口 |
| ` p` | 选择`NvimTree` 的窗口 |
| ` c` | 选择关闭`NvimTree` 的窗口 |
| `` 到 `` | 选择`NvimTree` 的窗口 | 目前只做了 1 - 6 |### lsp 语法提示
| 快捷键 | 功能 |
| ------------ | ------------------------ |
| ` n` | 下一个语法错误提示 |
| ` q` | 打开语法错误提示列表窗口 |### Markdowd 预览
| 快捷键 | 功能 |
| ------------- | ------------------- |
| ` dt` | `Markdowd` 预览 |
| ` ds` | `Markdowd` 分屏预览 |### Telescope
配置文件在 `plugins.telescope`
| 快捷键 | 功能 |
| ------------- | ---------------- |
| `` | 查找文件 |
| ` fg` | 查找文件中的内容 |
| ` fh` | 查找 help tag |### cmp
配置文件在 `plugins.nvim-config`
| 快捷键 | 功能 |
| --------- | -------------- |
| `` | 选择上一个 |
| `` | 选择下一个 |
| `` | 出现补全 |
| `` | 取消补全 |
| `` | 确认第一个 |
| `` | 确认第一个中文 |### nvim-Treesitter
配置文件在 `plugins.nvim-treesitter`
**注:** 目前只做了 python 的
| 快捷键 | 功能 |
| ------- | ------------ |
| `` | 选择一段 |
| `` | 反选 |
| `` | 选择整个函数 |### neoformat
配置文件在 `plugins.neoformat`
**注:** 目前只做了 python 的, 用的是 black
| 快捷键 | 功能 |
| ------- | ------ |
| `` | 格式化 |### lspconfg
配置文件在 `plugins.lspconfig`
**注:**- 目前只做了 python 的, 用的是 pylsp
- 在option 中的 `vim.g.python3_host_prog` 配置py3路径 (有环境变量就直接配 `python`)| 快捷键 | 功能 |
| ------ | -------- |
| `gh` | 查看文档 |## 其他东西以后再说
---