From 4ff5e8bf81becfa07ae75393c2395593abbf8ade Mon Sep 17 00:00:00 2001 From: Samyak Bardiya Date: Sat, 21 Feb 2026 19:30:25 +0530 Subject: [PATCH] fix(news): use $VIMRUNTIME for news.txt path Use `vim.env.VIMRUNTIME` to resolve `news.txt` instead of `nvim_get_runtime_file()`, which can return a plugin's `news.txt` (e.g., rainbow-delimiters.nvim) instead of Neovim's bundled one. --- lua/lazyvim/util/news.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazyvim/util/news.lua b/lua/lazyvim/util/news.lua index f473f3a3..43e45c45 100644 --- a/lua/lazyvim/util/news.lua +++ b/lua/lazyvim/util/news.lua @@ -51,7 +51,7 @@ function M.open(file, opts) end file = plugin.dir .. "/" .. file elseif opts.rtp then - file = vim.api.nvim_get_runtime_file(file, false)[1] + file = vim.fs.joinpath(vim.env.VIMRUNTIME, "doc", "news.txt") end if not file then