From 6cb31718df762c6ebf764986074f08b19d6f82f8 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 16 Oct 2022 01:40:16 +0200 Subject: Refactor loading of plugins with packer --- fnl/init.fnl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'fnl/init.fnl') diff --git a/fnl/init.fnl b/fnl/init.fnl index 362dc78..542dead 100644 --- a/fnl/init.fnl +++ b/fnl/init.fnl @@ -1,4 +1,6 @@ -;; Install, load settings, and load plugin configs. -(module init {autoload {: util} require [settings config.packer]}) +;; Load plugins with packer. +(module init {autoload {: plugins : packer} require [settings config.packer]}) -(util.load-plugins) +(packer.startup (fn [use] + (each [_ plugin (pairs plugins.all)] + (use plugin)))) -- cgit v1.2.3-70-g09d2 From be481f2c2a4b8a39a3ccd89775a3771338d39232 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 17 Oct 2022 00:37:04 +0200 Subject: Update autocmd and fix loading --- fnl/config/autocmd.fnl | 2 +- fnl/init.fnl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'fnl/init.fnl') diff --git a/fnl/config/autocmd.fnl b/fnl/config/autocmd.fnl index dfdf789..e05405d 100644 --- a/fnl/config/autocmd.fnl +++ b/fnl/config/autocmd.fnl @@ -26,7 +26,7 @@ :NeogitCommitMessage :NeogitNotification :NeogitCommitView - :toggleterm] + :ToggleTerm] :command "setlocal spell!"}) (create-autocmd :VimResized {:command "tabdo wincmd ="}) diff --git a/fnl/init.fnl b/fnl/init.fnl index 542dead..2e25da9 100644 --- a/fnl/init.fnl +++ b/fnl/init.fnl @@ -1,5 +1,5 @@ ;; Load plugins with packer. -(module init {autoload {: plugins : packer} require [settings config.packer]}) +(module init {autoload {: plugins : packer} require [settings config.packer config.autocmd]}) (packer.startup (fn [use] (each [_ plugin (pairs plugins.all)] -- cgit v1.2.3-70-g09d2