Skip to content

khaitranhq/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neovim Configuration 🔧

Prerequesites

  • Node.js
  • Python
  • LLVM
  • Neovim > 0.8.0. Check documentation to install additional dependencies

Install aditional formatter

npm install -g prettier lua-fmt neovim
pip install --upgrade yapf

Environment for C++ development

Add this to ~/.zshrc or ~/.profile

export CPLUS_INCLUDE_PATH=/usr/include/c++/11:/usr/include/x86_64-linux-gnu/c++/11

Usage 🎆

Miscellaneous

Nvim-tree

Command Usage
Ctrl + b Open nvim-tree
a Create new file/folder
d Remove file/folder
gy Copy absolute path
y Copy file/folder name
Y Copy relative path

Git

Command Usage
Leader + gs Open git status
Leader + gd Show git diff
Leader + gb Show git blame

LSP and format

Command Usage
Leader + rn Rename variables
Leader + fm Format code
Leader + e Show full error
Leader + d Show documentation

Telescope

Command Usage
Ctrl + f Find files
Ctrl + g Grep file
Leader + b Buffers
Leader + gf Grep in current file (deprecated)
Select text and Leader + g Grep in current file with selected text
Select text and Leader + G Grep in all files with selected text

Comment

Command/key Usage
gcc Toggle comment current line
[Visual mod] gc Toggle comment in a block

Outline

Command :SymbolsOutline to toggle Symbols Outline. Use key h and l to fold and unfold

Motion

Command Usage
Leader + hw Fastly move to words
Leader + hl Fastly move to begin of lines
Leader + hp Fastly move with search pattern
Leader + hv Fastly move in vertical column

Search and replace

Command/key Usage
Leader + S Open search and replace buffer
Leader + sw Search with the current selected tex
Leader + scw Search in the current file

Preview definitions

Command/key Usage
Leader + gpd Open preview definition
Leader + gpt Open preview type definition
Leader + gpi Open preview implement definition
Leader + gpr Open preview references

Debugger

Command/key Usage
Leader + dbk Toggle a breakpoint
Leader + dbs Start/Continue DAP
Leader + dbr Restart debugger
Leader + dbt Terminate debugger
Leader + dbn Next step
Leader + dbb Back step (some languages not supported)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages