Further migration of expressive functionality to fennel

This commit is contained in:
2026-07-14 13:18:18 +01:00
parent 1b314768f1
commit 7a7221ff0d
4 changed files with 56 additions and 57 deletions
+22
View File
@@ -0,0 +1,22 @@
local M = {}
-- Helper function to ensure core bootstrapping plugins are installed
function M.ensure_plugin(name, repo, branch)
local path = vim.fn.stdpath("data") .. "/lazy/" .. name
if not (vim.uv or vim.loop).fs_stat(path) then
local cmd = {
"git",
"clone",
"--filter=blob:none",
"https://github.com/" .. repo .. ".git",
}
if branch then
table.insert(cmd, "--branch=" .. branch)
end
table.insert(cmd, path)
vim.fn.system(cmd)
end
return path
end
return M