My neovim config(Applicable to linux platform, please refer to windows branch for windows platform.)
Part of the configuration reference:Effective NeoVim Setup for 2024.pdf
forked from LazyVim Refer to the documentation to get started.
Pay attention to replace the url of lazyvim with the url of this repository when cloning.
UI interface:
space+e/E Open neo-tree file manager shift+k Show var info under the cursor,Use it (or space+k) to open a URL under the cursor with the default browser. space+c+r Rename a variable ;+f Search and Preview files (arrange:current workspace, UI:telescope) space+f+f Same as above, but the preview range is larger with line numbers.(UI:fzf-lua) Ctrl+\or/ Open / Close the terminal space+D
My Terminal is WindowsTerminal(preview).
The config file of WT is here.
The default shortcut key for switching focus mode (WT without border) is ALT+Z in my wt config.
Requirements:
-
gcc/g++ Required for c/cpp code
Using package manager to install, such as
sudo apt install gcc g++
. Some plugins need to be compiled. -
fd Required
Search files.
-
ripgrep Required
Search content from files.
-
tree-sitter Required!!!
Provide advanced function by building syntax tree.
-
fzf Recommended
Fuzzy search
-
Lua Required!!!
-
Maple Mono NF (CN) Optional
a nerd font
-
lazygit Optional(A GUI for git)
Quick installation suggestion: You can install it with pip or conda if you have python or anaconda.
-
Python Optional
-
Node Required
Many plugins that provide advanced features such as code completion and refactoring are installed using npm.
I use anaconda to manage python virtual environment, and neovim uses venv-selector plugin to switch python environment. Pay attention to modifying anaconda path in lua/plugins/editor.lua