From 96d0c709b66e5c690800dc2d88c723b01f5f0561 Mon Sep 17 00:00:00 2001 From: Michael <42828375+sarmong@users.noreply.github.com> Date: Wed, 17 Apr 2024 09:31:13 +0300 Subject: [PATCH] fix(healthcheck): expand vimrc variable (#28379) --- runtime/lua/nvim/health.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/lua/nvim/health.lua b/runtime/lua/nvim/health.lua index d4670eab6c..5bc03199ee 100644 --- a/runtime/lua/nvim/health.lua +++ b/runtime/lua/nvim/health.lua @@ -50,7 +50,7 @@ local function check_config() local init_lua = vim.fn.stdpath('config') .. '/init.lua' local init_vim = vim.fn.stdpath('config') .. '/init.vim' - local vimrc = vim.env.MYVIMRC or init_lua + local vimrc = vim.env.MYVIMRC and vim.fn.expand(vim.env.MYVIMRC) or init_lua if vim.fn.filereadable(vimrc) == 0 and vim.fn.filereadable(init_vim) == 0 then ok = false