My neovim configs.
Support nvim >= 0.10.0 on MacOS, Linux and Windows.
Install Neovim first.
Then simply clone this repo directly into your Neovim configs directory:
# removes all your previous nvim configs first!
rm -rf ~/.config/nvim
# removes all your previous nvim data
# rm -rf ~/.local/share/nvim
git clone https://github.com/realphongha/nvim-configs.git ~/.config/nvim
# removes all your previous nvim configs first!
Remove-Item -Path "~/AppData/Local/nvim" -Recurse -Force
# removes all your previous nvim data
# Remove-Item -Path "~/AppData/Local/nvim-data" -Recurse -Force
cd ~/AppData/Local/
git clone https://github.com/realphongha/nvim-configs.git nvim
Done!
Create lua/my_configs.lua
for your personal configs or
lua/my_plugins.lua
for your personal plugins (in lazy.nvim format).
Some LSP servers are already integrated in configs but you need to install them first.
You can use mason.nvim (already installed) or manually install (below):
pip install jedi-language-server
npm i -g pyright
npm install -g typescript typescript-language-server
- Install LSP servers (manually or using mason.nvim)
- Add LSP configs for neovim in
lua/plugins/coding.lua
, mason-lspconfig->config section. - Add lazy load condition to nvim-lspconfig->ft section in
lua/plugins/coding.lua
This repo is directly inspired by vimrc, ThePrimeagen video and Learn Vimscript the Hard Way.
- vim-commentary
- vim-sleuth
- lightline.vim
- undotree
- vim-doge
- vim-fugitive (Lazy load:
:Git
) - nvim-lspconfig
(Lazy load:
:LspStart
, pls run it once after installing this config to initialize LSP servers) - nvim-autopairs
- cmp-buffer
- cmp-cmdline
- cmp-nvim-lsp
- cmp-path
- cmp-vsnip
- nvim-cmp
- vim-vsnip
- telescope.nvim
- plenary.nvim
- nvim-treesitter
- nvim-tree.lua
- nvim-web-icons
- mason.nvim
- which-key.nvim
- codeium.vim (Lazy load:
:Codeium
) - leetcode.nvim
(To load: run the command
nvim leetcode.nvim
to open leetcode.nvim interface)
- the_silver_searcher is supported as 'grep' command (but you need to install it on your system first)
- ripgrep should be installed first if you want to use telescope livegrep
- Patched fonts should be installed for nvim-tree
- Check out my minimal configs for tmux. It works seemlessly with nvim.
- Use
:lua SeeWaifu()
or:lua SeeWaifu("colorscheme-name")
to make your background transparent and see your waifu in the terminal :D - A simple configs for Neovim GUI (i.e.,
ginit.vim
) is also supported. Should work with Neovide, VimR and NeovimQt. - For Neovim Qt, you can run
misc/add_nvimqt_to_context_menu_windows.reg
to add Neovim Qt to context menu (only for Windows) (stolen from here) :D