Personal NeoVim Configuration.
- Toggle Diagnostics (disabled by default):
<Leader>e
(by default<Leader>
is assigned to\
) - NvimTree Toggle (File Explorer, enabled by default):
<C-n>
- Telescope File Finder:
<C-p>
- Telescope Live Grep:
<C-f>
- Within the autocomplete functions of the selected LSP-Server:
- Next Suggestion:
<C-n>
- Previous Suggestion:
<C-p>
- Up in the Suggestion Documentation:
<C-u>
- Down in the Suggestion Documentation:
<C-d>
- Next Suggestion:
(I suggest you rather follow the official installation steps)
In order to download the latest version of neovim
:
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
./nvim.appimage
In order to create a shortcut as nvim
:
sudo ln -s ./nvim.appimage /usr/bin/nvim
In order to setup the current configuration, move the init.lua
file to ~/.config/nvim/init.lua
Additionaly, you can add the following lines to your .zshrc
configuration file to enable autocompletion and slash-completion:
# Enable completion
autoload -U compinit
compinit
# Add a "/" after ".." when pressing Tab
zstyle ':completion:*' special-dirs true
export PATH="/usr/local/sbin:$PATH"