doom-neovim / doom-nvim

A Neovim configuration for the advanced martian hacker
GNU General Public License v2.0
1k stars 108 forks source link

Fixed backup dirs & added doom-nvim installed check #401

Closed Coloursplash closed 1 year ago

Coloursplash commented 1 year ago

has_found_directory always equalled an empty string so if nvim-old already existed it would fail to move to nvim-old-1 and would then fail when installing doom-nvim.

Added function to check whether doom-nvim is specifically installed in the config and, if so, backs the config up to doom-nvim-old. If doom is installed then the default backup_existing_config function doesn't run.

connorgmeehan commented 1 year ago

Works great @Coloursplash! Thanks for the PR