trixy/init.lua

36 lines
797 B
Lua
Raw Normal View History

2024-07-12 22:10:34 +02:00
2024-07-14 19:04:45 +02:00
-- needed to fix deprecation warning
vim.tbl_islist = vim.islist
2024-07-12 22:10:34 +02:00
2024-07-14 19:04:45 +02:00
-- bootstrap tangerine and hibiscus in order to have fennel support
2024-07-12 22:10:34 +02:00
local function bootstrap(url, ref)
local name = url:gsub(".*/", "")
local path
path = vim.fn.stdpath("data") .. "/lazy/" .. name
vim.opt.rtp:prepend(path)
if vim.fn.isdirectory(path) == 0 then
print(name .. ": installing in data dir...")
vim.fn.system {"git", "clone", url, path}
if ref then
vim.fn.system {"git", "-C", path, "checkout", ref}
end
vim.cmd "redraw"
print(name .. ": finished installing")
end
2023-08-10 22:31:27 +02:00
end
2024-07-12 22:10:34 +02:00
bootstrap("https://github.com/udayvir-singh/tangerine.nvim")
bootstrap("https://github.com/udayvir-singh/hibiscus.nvim")
2024-07-14 19:04:45 +02:00
2024-07-12 22:10:34 +02:00
require "tangerine".setup {
compiler = {
verbose = false,
hooks = { "onsave", "oninit" }
}
}