Skip to content

Commit

Permalink
Evade the crazy issue with failing a single comment indent test.
Browse files Browse the repository at this point in the history
It has to do with `.` appearing twice on the runtime path.

So... avoid doing so when we're headless.
  • Loading branch information
Julian committed Dec 16, 2024
1 parent 7293394 commit ddcc998
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/minimal_init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ local this_dir = vim.fs.dirname(debug.getinfo(1, 'S').source:sub(2))
local lean_nvim_dir = vim.fs.dirname(this_dir)
local packpath = vim.fs.joinpath(lean_nvim_dir, 'packpath/*')
vim.opt.runtimepath:append(packpath)
vim.opt.runtimepath:append(lean_nvim_dir)

-- Doing this unconditionally seems to fail a random indent test?!?!
-- Inanis/Plenary will automatically set rtp+. (which seems wrong, but OK)
-- so really we need this just for `just nvim`...
if #vim.api.nvim_list_uis() ~= 0 then
vim.opt.runtimepath:append(lean_nvim_dir)
end

vim.cmd [[
runtime! plugin/lspconfig.vim
Expand Down

0 comments on commit ddcc998

Please sign in to comment.