GithubHelp home page GithubHelp logo

sokhuong-uon / nvim Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 59 KB

VSCode-Neovim keybinding config using Lua

License: MIT License

Lua 92.18% Shell 7.82%
config keybindings neovim vim vscode shortcuts configs custom settings whichkey

nvim's Introduction

Neovim config for using with VSCode

Installation (Linux)

1. Download

bash <(curl -s https://raw.githubusercontent.com/sokhuong-uon/nvim/main/installer.sh)

or clone this repo into your .config folder

2. Config

Point VSCode Neovim config path to init.lua.

VSCode extensions needed

Plugins

Keybinding

Note: leader is set to Space .

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

- Refactor

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

- HTML Emmet

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

- Buffer/Active Editor/Tab

Binding What it does Mode VSCode command
+ w Close active editor. N workbench.action.closeActiveEditor
+ W Close other active editor/s. N workbench.action.closeOtherEditors
+ b + t Show active eidtor in file explorer. N workbench.files.action.showActiveFileInExplorer
+ b + r Rename file. N workbench.files.action.showActiveFileInExplorer, renameFile
+ 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

nvim's People

Contributors

sokhuong-uon avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.