sudo chown -R zhex:zhex ~/.local/share/nvim/swap export PATH=$PATH:/home/zhex/.config/nvim for me worked