Skip to content

sokhuong-uon/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neovim config for using with VSCode

VSCode extensions needed

Plugins

  • wbthomason/packer.nvim: Plugin manager.
  • ggandor/leap.nvim: Jump to anywhere in visible screen.
    • s start searching Forward.
    • S start searching Backward.
    • move to first result.
    • Type the label charactor to move to the desired result.
    • Also works in Visual mode.

Keybinding

Note: leader is set to Space .

Binding What it does Mode VSCode command
leader Show whichkey menu. N whichkey.show
leader + Show Command Palette. N workbench.action.showCommands
leader + / Comment out selected code. N/V editor.action.commentLine

- Refactor

Binding What it does Mode VSCode command
leader + r Show refactor menu. N/V editor.action.refactor
leader + r + r Rename symbol. N editor.action.rename
leader + r + i Organize import. N editor.action.organizeImports
leader + r + c Remove console log. N :g/\\vconsole[.][lgtc]/d<cr>

- HTML Emmet

Binding What it does Mode VSCode command
leader + r + w Wrap <tag>/s in another tag. N/V editor.emmet.action.wrapWithAbbreviation
leader + r + d Delete HTML <tag>. N editor.emmet.action.removeTag
leader + r + u Update HTML <tag>. N editor.emmet.action.updateTag

- Buffer/Active Editor/Tab

Binding What it does Mode VSCode command
leader + w Close active editor. N workbench.action.closeActiveEditor
leader + W Close other active editor/s. N workbench.action.closeOtherEditors
leader + b + t Show active eidtor in file explorer. N workbench.files.action.showActiveFileInExplorer
leader + b + r Rename file. N workbench.files.action.showActiveFileInExplorer, renameFile
leader + b + n New file in the same folder as active file. N workbench.explorer.fileView.focus, explorer.newFile
Ctrl + s Save file. N Ctrl + s

- Explore/list navigation

https://github.com/vscode-neovim/vscode-neovim#explorerlist-navigation

- File explorer manipulation

https://github.com/vscode-neovim/vscode-neovim#explorer-file-manipulation

Releases

No releases published

Packages

No packages published

Languages