[NeoVim] Call PackerSync after Fennel changes
This commit is contained in:
@@ -3,17 +3,27 @@ local install_path = vim.fn.stdpath('data')..'/site/pack/packer/start/'
|
|||||||
local function bootstrap(url)
|
local function bootstrap(url)
|
||||||
local name = url:gsub('.*/', '')
|
local name = url:gsub('.*/', '')
|
||||||
local path = install_path .. name
|
local path = install_path .. name
|
||||||
|
local bootstrapped = false
|
||||||
if vim.fn.empty(vim.fn.glob(path)) > 0 then
|
if vim.fn.empty(vim.fn.glob(path)) > 0 then
|
||||||
vim.fn.system({'git', 'clone', '--depth', '1', url, path})
|
vim.fn.system({'git', 'clone', '--depth', '1', url, path})
|
||||||
vim.cmd('packadd ' .. name)
|
vim.cmd('packadd ' .. name)
|
||||||
|
bootstrapped = true
|
||||||
end
|
end
|
||||||
|
return bootstrapped
|
||||||
end
|
end
|
||||||
|
|
||||||
bootstrap('https://github.com/udayvir-singh/tangerine.nvim')
|
local tangerine_bootstrapped = bootstrap('https://github.com/udayvir-singh/tangerine.nvim')
|
||||||
bootstrap('https://github.com/udayvir-singh/hibiscus.nvim')
|
bootstrap('https://github.com/udayvir-singh/hibiscus.nvim')
|
||||||
|
|
||||||
|
if tangerine_bootstrapped then
|
||||||
require('tangerine').setup({
|
require('tangerine').setup({
|
||||||
compiler = {
|
compiler = {
|
||||||
hooks = {'oninit'}
|
hooks = {'oninit'}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
else
|
||||||
|
require('tangerine').setup({})
|
||||||
|
if (#(require('tangerine.vim.hooks').run()) > 0) then
|
||||||
|
require('packer').sync()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user