Why are neovim configurations not applying when I use sudo?

This feels like a noob question but I just can’t seem to figure out how to make my neovim configurations (done in home manager with nixvim) usable when I’m using sudo.

Simple: don’t use sudo.

Use sudoedit / sudo -e if you’re editing any root-owned files (which itself shouldn’t be something you do often anyway).

1 Like