aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authoramelia squires <[email protected]>2024-10-22 23:40:30 -0500
committeramelia squires <[email protected]>2024-10-22 23:40:30 -0500
commit0b7b1684d87b7d0b01b5645713b413e317699fd0 (patch)
tree70d54faa4536e97894754e63061f0d2fad99079c /plugin
readme
Diffstat (limited to 'plugin')
-rw-r--r--plugin/0-tangerine.lua41
1 files changed, 41 insertions, 0 deletions
diff --git a/plugin/0-tangerine.lua b/plugin/0-tangerine.lua
new file mode 100644
index 0000000..a47ac1b
--- /dev/null
+++ b/plugin/0-tangerine.lua
@@ -0,0 +1,41 @@
+-- ~/.config/nvim/plugin/0-tangerine.lua or ~/.config/nvim/init.lua
+
+-- pick your plugin manager
+local pack = "packer"
+
+local function bootstrap(url, ref)
+ local name = url:gsub(".*/", "")
+ local path
+
+ if pack == "lazy" then
+ path = vim.fn.stdpath("data") .. "/lazy/" .. name
+ vim.opt.rtp:prepend(path)
+ else
+ path = vim.fn.stdpath("data") .. "/site/pack/".. pack .. "/start/" .. name
+ end
+
+ 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
+
+-- for stable version [recommended]
+-- bootstrap("https://github.com/udayvir-singh/hibiscus.nvim", "v1.7")
+
+-- for git head
+bootstrap("https://github.com/udayvir-singh/hibiscus.nvim")
+
+require'tangerine'.setup{
+ compiler = {
+ verbose = false,
+ hooks = { "onsave", "oninit" }
+ }
+}