Neovim

Installation

To get the latest version of neovim on any linux system, run

curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
sudo rm -rf /opt/nvim
sudo tar -C /opt -xzf nvim-linux64.tar.gz

Then add neovim to your path (either in .bashrc or .zshrc)

export PATH="$PATH:/opt/nvim-linux64/bin"

Plugins

I use the following plugins

vim-sleuth

This plugin automatically adjusts ‘shiftwidth’ and ‘expandtab’ heuristically based on the current file, or, in the case the current file is new, blank, or otherwise insufficient, by looking at other files of the same type in the current and parent directories.

Comment.nvim

Useful shortcuts for toggling comments

`gcc` - Toggles the current line using linewise comment
`gbc` - Toggles the current line using blockwise comment

conform.nvim

Enables the use of formaters such as prettier, ruff etc. Formatters need to be installed seperately and then added to the nvim config file.

gitsigns.nvim

Show git signs on the side of the buffer.

whichkey.nvim

Shows available shortcuts as you type.

telescope.nvim

Enables fuzzyfinding and previewing other files from within neovim. I have the shortcuts sf for search file and sg for search grep as my main use cases.

catppuccin

Enables the catppuccin colour theme

todo-comments.nvim

Highlight, list and search todo comments in your projects. Running the following will show all the todo items in the current project.

:TodoQuickFix

nvim-tree

Use a filetree from within neovim in a side panel similar to other IDE’s.