-- LLeMbas IDE. This file starts the distribution and is replaced when the IDE is updated. -- Your own settings, keys and plugins belong in lua/user/init.lua beside it, which is loaded -- last and is never overwritten. local prefix = vim.env.LLEMBAS_IDE_PREFIX if not prefix or prefix == "" then prefix = vim.fn.stdpath("data") end local here = vim.fn.fnamemodify(debug.getinfo(1, "S").source:sub(2), ":p:h") if vim.fn.isdirectory(here .. "/lua/llembas_ide") == 0 then -- Installed: the distribution and its pinned plugins are packages under the prefix. vim.opt.packpath:prepend(prefix .. "/site") end local ok, ide = pcall(require, "llembas_ide") if not ok then vim.api.nvim_echo({ { "LLeMbas IDE is not installed where this configuration expects it (" .. prefix .. ").\n", "WarningMsg" }, { "Run the installer again, or `llembas-ide doctor`. Neovim itself works.\n", "WarningMsg" }, { tostring(ide) .. "\n", "Comment" }, }, true, {}) return end ide.start({ prefix = prefix })