My neovim config for studying, using lazyvim. For full functionality, you may want to check out my configurations for tmux and foot.
I'm using paru as my AUR helper, make sure to change that to your package manager if required.
# Backup current config
mv ~/.config/nvim ~/.config/nvim.bak
mv ~/.local/share/nvim ~/.local/share/nvim.bak
# Install required packages
paru -S ripgrep fd
git clone https://github.com/TheGogy/nvim ~/.config/nvim
# Remove unneccessary stuff
rm -rf ~/.config/nvim/.git
nvim
Most keymaps have already been set by lazyvim. For a list of these presets, see here.
Keymap | Command |
---|---|
alt + . |
Switch to right buffer (same for neo-tree) |
alt + , |
Switch to left buffer (same for neo-tree) |
alt + < |
Switch current buffer with left buffer |
alt + > |
Switch current buffer with right buffer |
alt + <n> |
Switch to buffer <n> |
alt + p |
Toggle pin for active buffer |
alt + w |
Close active buffer |
alt + W |
Close all buffers except active buffer |
<leader>/ |
Toggle comment |
<leader>fw |
Telescope live_grep |
<leader>ff |
Telescope find_files |
<leader>ci |
Find Nerd Fonts icon |
<ctrl>j |
Extend cursor down |
<ctrl>k |
Extend cursor up |
<ctrl>a |
Add cursors to all words matching current |
Note
This setup is using a workaround for alt
+ < >
, to ensure compatibility for foot terminal. If this is causing problem for your terminal, see keymaps.lua
.