Get packer started, next add plugins with configuration

This commit is contained in:
Barry Moore 2023-01-27 16:02:10 -05:00
parent 1f6f0c40e8
commit 3fe54836d6
7 changed files with 474 additions and 1 deletions

3
fnl/init.fnl Normal file
View file

@ -0,0 +1,3 @@
(module init {autoload {core aniseed.core nvim aniseed.nvim}})
(require :plugins)

33
fnl/plugins.fnl Normal file
View file

@ -0,0 +1,33 @@
(local install_path
(.. (vim.fn.stdpath :data) :/site/pack/packer/start/packer.nvim))
(var is_bootstrap false)
(when (< 0 (vim.fn.empty (vim.fn.glob install_path)))
(set is_bootstrap true)
(vim.fn.system [:git
:clone
:--depth
:1
"https://github.com/wbthomason/packer.nvim"
install_path])
(vim.cmd "packadd packer.nvim"))
(let [packer (require :packer)]
(packer.startup (fn [use]
(use :wbthomason/packer.nvim)
;; Add custom plugins to packer from ~/.config/nvim/lua/custom/plugins.lua
(local (has_plugins plugins)
(pcall require :custom.plugins))
(when has_plugins
(plugins (use)))
(when is_bootstrap
(packer.sync)))))
(when is_bootstrap
(print "==================================")
(print " Plugins are being installed")
(print " Wait until Packer completes,")
(print " then restart nvim")
(print "==================================")
(return))