Skip to content

Commit ddcc998

Browse files
committed
Evade the crazy issue with failing a single comment indent test.
It has to do with `.` appearing twice on the runtime path. So... avoid doing so when we're headless.
1 parent 7293394 commit ddcc998

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/minimal_init.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ local this_dir = vim.fs.dirname(debug.getinfo(1, 'S').source:sub(2))
66
local lean_nvim_dir = vim.fs.dirname(this_dir)
77
local packpath = vim.fs.joinpath(lean_nvim_dir, 'packpath/*')
88
vim.opt.runtimepath:append(packpath)
9-
vim.opt.runtimepath:append(lean_nvim_dir)
9+
10+
-- Doing this unconditionally seems to fail a random indent test?!?!
11+
-- Inanis/Plenary will automatically set rtp+. (which seems wrong, but OK)
12+
-- so really we need this just for `just nvim`...
13+
if #vim.api.nvim_list_uis() ~= 0 then
14+
vim.opt.runtimepath:append(lean_nvim_dir)
15+
end
1016

1117
vim.cmd [[
1218
runtime! plugin/lspconfig.vim

0 commit comments

Comments
 (0)