My own nvim config using lazy.nvim and some selected plugins.
This is the main branch (for linux), checkout windows branch for windows configs.
Download Neovim.
Then, run the following commands
mkdir -p ~/.config/nvim
git clone https://github.com/nchhillar2004/nvim-config.git ~/.config/nvim
NOTE: Use Linux for better plugins support
Checkout Windows config
-
vim.g.mapleader = " "
: Set mapleader to Space -
Normal Mode Key Mappings
Space + t
: Open terminalSpace + e
: Toggle NvimTreeSpace + n
: Open NvimTree in full screenSpace + f
: Format the file (gg=G
)Space + p
: Format with Prettier (for tsx/jsx files)Space + b
: Switch to the last bufferSpace + pv
: Open Ex command line (vim.cmd.Ex
)Space + ff
: Find files using TelescopeSpace + fg
: Live grep (search content inside files) with TelescopeSpace + fb
: Switch to a buffer using TelescopeSpace + s
: Split window verticallySpace + 0
: Remove background color (highlight Normal guibg=none
)Space + 1
: Set background to black (highlight Normal guibg=#000000
)Space + 2
: Userose-pine-main
colorschemeSpace + 3
: Usekanagawa
colorschemeSpace + 4
: Usegruvbox
colorschemeSpace + 5
: Useashen
colorscheme
-
Move Lines (Normal Mode)
Alt + j
: Move current line down (<cmd>m+1<CR>==
)Alt + k
: Move current line up (<cmd>m-2<CR>==
)
-
Save and Copy/Paste
Ctrl + s
: Save file (<cmd>w<CR>
)Ctrl + a
: Select all (ggVG
)Ctrl + c
: Copy all to clipboard ("+y
)Ctrl + v
: Paste from clipboard ("+p
)
-
Terminal Mode Key Mappings
Esc
: Exit terminal modeSpace + b
: Switch to the last buffer (<C-\\><C-n>:b#<CR>
)
-
Navigation Mappings
gg
: Go to the top of the fileG
: Go to the bottom of the file0
: Go to the beginning of the line^
: Go to the first non-blank character of the line$
: Go to the end of the line
- If icons are not visible, install Nerd font. recommended: oh-my-posh
- For code suggestions, ensure Node.js is installed.