A new top-level ide/: install.sh places a hash-checked Neovim release, five third-party plugins each at one pinned commit, the LLeMbas plugin from nvim/, a generated colourscheme and a launcher, for one user and under its own NVIM_APPNAME. Built in a staging directory, started there once, then swapped in. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
21 lines
1000 B
Lua
21 lines
1000 B
Lua
-- 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 })
|