# neovim **Repository Path**: therux/neovim ## Basic Information - **Project Name**: neovim - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-05-15 - **Last Updated**: 2022-09-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # NEOVIM CONFIG WITH PURE LUA ## Prerequisite 1. [neovim](https://github.com/neovim/neovim) 0.5 for lua support and native-lsp support 2. [bat](https://github.com/sharkdp/bat) for preview text in telescope search dialog 3. [fd](https://github.com/sharkdp/fd) for find files by file name 4. [ripgrep](https://github.com/BurntSushi/ripgrep) for find files by contents in files 5. patched fonts. (e.g. [nerd-fonts](https://github.com/ryanoasis/nerd-fonts)) ## Installation 1. install packer.nvim via `git clone https://gitee.com/rux_plugin/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim` 2. clone this repo to personal neovim config folder (e.g. $HOME/.config/nvim) 3. launch neovim via command `nvim` 4. invoke command `:PackerSync` in neovim and wait for plugin installings 5. relaunch neovim and the treesitter plugin will automatically download all matained json files for better highlighting. 6. for LSP supports, you need to install different lsp servers by yourself and add them to `init-lspconf.lua` ## LSP servers I'm currently using Archlinux with [paru](https://github.com/Morganamilo/paru) as my AUR helper. For installing language servers, you can use scripts below. ```shell sudo pacman -S clang sudo pacman -S pyright sudo pacman -S lua-language-server sudo pacman -S bash-language-server paru -S jdtls ``` ## 使用 代码 `gd` 跳转到定义 `gD` 跳转到声明 `gr` 搜索引用 `rn` 重命名变量 `ca` 代码修改建议 `so` 搜索关键字 `f` 格式化代码 `c-space` 代码补全提示 `c-e` 关闭代码补全提示 `cr` 选中补全 `tab` 下一个 `shitf-tab` 上一个 搜索 `sf` 搜索文件 `sg` grep搜索 `sb` 搜索buffers文件 `sh` vim帮助文档 `sp` 搜索媒体文件 `c-\` 显示终端 `alt-\` nvim-tree nvim-tree `o l cr 左键双击` 打开文件 `s S` 垂直/水平分屏方式打开 `t` tab页方式打开 `C` 关闭文件夹 `space` toggle `a` 新建文件 `A` 新建文件 `d r y x p c m` 删除 重命名 复制 剪切 粘贴 复制到 移动到 `q` 退出 nvim-tree `R` 刷新 `?` 帮助 `H` 显示隐藏文件 whichkey `:Whichkey` 按键帮助 `c-r` 插入模式下显示寄存器 `c-"/c-@` 普通模式显示寄存器