From 5a4114caae9c9483a9010b96b6de15de447fa30f Mon Sep 17 00:00:00 2001 From: Wil Thomason Date: Wed, 10 Feb 2021 23:32:39 -0500 Subject: [PATCH] Fix: Neovim may use init.vim or init.lua (#626) --- src/steps/vim.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/steps/vim.rs b/src/steps/vim.rs index e2d5ab73..29d5ccb2 100644 --- a/src/steps/vim.rs +++ b/src/steps/vim.rs @@ -34,7 +34,10 @@ fn nvimrc(base_dirs: &BaseDirs) -> Result { #[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<()> {