Skip to content

Latest commit

 

History

History
96 lines (83 loc) · 4.32 KB

README.md

File metadata and controls

96 lines (83 loc) · 4.32 KB

UI

Supported languages

Python HTML CSS JavaScript TypeScript C++ The Rust Programming Language: A language empowering everyone to build reliable and efficient software Rust Lua

Markdown, JSON

Pre-requisites

Same as Pre-requisites of NvChad

Installation

Run the following command in your terminal

Linux
Clean cache of old setup
rm -rf ~/.local/state/nvim
rm -rf ~/.local/share/nvim
mv ~/.config/nvim ~/.config/nvim-backup
mv ~/.local/share/nvim ~/.local/share/nvim-backup
git clone https://github.com/Suryansh-Dey/neovim-config.git ~/.config/nvim && nvim
Windows In powershell
Clean cache of old setup
rm -Force $HOME\AppData\Local\nvim-data
mv $HOME/AppData/Local/nvim $HOME/AppData/Local/nvim-backup
mv $HOME/AppData/Local/nvim-data $HOME/AppData/Local/nvim-data-backup
git clone https://github.com/Suryansh-Dey/neovim-config.git $HOME/AppData/Local/nvim && nvim

mv commnds might raise error if no nvim config file is already there but ignore that. Following command will still do the job!
Now run :MasonInstallAll command in neovim
All done!! Troubleshooting

Tip to find a keybinding

Go to ~/.config/nvim/lua/mappings.lua, and search for the action. You will probably get it's corresponding keybinding here.

OR just google or chatGPT like: what is the NVChad keymap for opening terminal. (Answer: A-i for fullscreen and A-v or A-h for verticle and horizontal terminal)

If you need some feature which is not available in NVChad by default, check ~/.config/nvim/lua/plugins/init.lua with chatGPT. Probably you do have a plugin to get you cover. For eg. run :MarkdownPreview to preview markdown, thanks to "iamcco/markdown-preview.nvim" plugin.

Default keymap changes

  • The f motion is remapped to leap-forward of leap plugin. Just use t motion or f with just one extra letter making you sure about the motion!
  • The s motion is remapped to leap-backward.

NVChad's default keymap changes

  1. Ctrl-n -> Alt+f for file tree
  2. <leader>q -> <leader>lq to put diagnostics in location list.
  3. <leader>ph -> <leader>gh to see git change.
  4. <leader>pt -> <leader>ft to find terminal.

nvim-surround remaps

Since s is used for leap-backward, following remaps were done:

{
normal = "<leader>s", --"ys"
normal_cur = "<leader>ss", --"yss"
normal_line = "<leader>S", --"yS"
normal_cur_line = "<leader>SS", --"ySS"
delete = "d<leader>", --"ds"
change = "c<leader>", --"cs"
}

nvim-tree remaps

  1. f -> <leader>f since f is used for leap-forward
  2. s -> <leader>s since s is used for leap-backward

Daily usage

Refer to the wiki tab to know how I use it to be blazingly fast!