A straightforward Neovim configuration that should work for most developers. Cloned from NvChad's Tinyvim.
- Catpuccin colour scheme.
- Sidebar navigation.
- Tabs by default.
- Easy lazygit access.
- Basic code completion.
- Sensible hotkeys.
- A simple directory structure.
- Leader key set to
SPACE
.
-
Any C Compiler to build the LSP configs:
# MacOS brew install gcc # Ubuntu sudo apt install build-essential # Arch sudo pacman -S base-devel
-
Ripgrep to search through files and folders:
# MacOS brew install ripgrep # Ubuntu sudo apt install ripgrep # Arch sudo pacman -S ripgrep
-
Lazygit for Git things:
# MacOS brew install lazygit # Ubuntu sudo apt install lazygit # Arch sudo pacman -S lazygit
-
Backup your existing Neovim config if you haven't already:
mv ~/.config/nvim ~/.config/nvim-backup
-
Clear out your existing Neovim cache and local files:
rm -rf ~/.cache/nvim rm -rf ~/.local/share/nvim
-
Clone this repository into your
~/.config
directory:git clone https://github.com/johnnymatthews/simple-nvim ~/.config/nvim
-
Open Neovim:
nvim
Neovim should download all the extensions, theme files, and dependencies for you.
Most of the keyboard shortcuts (also called mappings) for this config can be found within ./lua/mappings.lua
, however some shortcuts are defined within plugins. Here is a complete list of all the keyboard shortcut for this repo (all shortcuts are from normal
mode, unless otherwise stated):
Description | Shortcut |
---|---|
Comment or uncomment a line | gc |
Open or close the sidebar navigation | CTRL + n |
Change focus to or from the sidebar navigation | CTRL + ww |
Copy the current file to the clipboard | CTRL + c |
Find file by filename. | SPACE ff |
Find files that you recently opened. | SPACE fo |
Search for files by their content. | SPACE fw |
Open a Lazygit window | SPACE fg |
Open a floating termial window | SPACE ft |
Close current tab | CTRL + q |
Open or close the undo-tree | SPACE u |