Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Fix: Neovim may use init.vim or init.lua (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
wbthomason authored Feb 11, 2021
1 parent 746ffda commit 5a4114c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/steps/vim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ fn nvimrc(base_dirs: &BaseDirs) -> Result<PathBuf> {
#[cfg(windows)]
let base_dir = base_dirs.cache_dir();

base_dir.join("nvim/init.vim").require()
base_dir
.join("nvim/init.vim")
.require()
.or_else(|_| base_dir.join("nvim/init.lua").require())
}

fn upgrade(vim: &PathBuf, vimrc: &PathBuf, ctx: &ExecutionContext) -> Result<()> {
Expand Down

0 comments on commit 5a4114c

Please sign in to comment.