mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
ditch fennel ? (#3)
yes Reviewed-on: https://git.earth2077.fr/leana/.files/pulls/3 Co-authored-by: Léana 江 <leana.jiang@icloud.com> Co-committed-by: Léana 江 <leana.jiang@icloud.com>
This commit is contained in:
parent
d0cb07df6d
commit
b81732fcf2
41 changed files with 1370 additions and 1114 deletions
|
|
@ -1,29 +1,7 @@
|
|||
local function bootstrap(url, ref)
|
||||
local name = url:gsub(".*/", "")
|
||||
local path
|
||||
require "maps"
|
||||
require "opts"
|
||||
require "autocmds"
|
||||
|
||||
path = vim.fn.stdpath "data" .. "/lazy/" .. name
|
||||
vim.opt.runtimepath:prepend(path)
|
||||
require "plugins"
|
||||
|
||||
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
|
||||
end
|
||||
bootstrap("https://github.com/udayvir-singh/tangerine.nvim", "v2.8")
|
||||
bootstrap "https://github.com/udayvir-singh/hibiscus.nvim"
|
||||
|
||||
require "tangerine".setup {
|
||||
target = vim.fn.stdpath [[data]] .. "/tangerine",
|
||||
compiler = {
|
||||
verbose = false,
|
||||
hooks = { "oninit", "onsave" },
|
||||
},
|
||||
}
|
||||
vim.cmd.colorscheme "curry"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue