From 966a6a8c42523831024665f3eab7200372655bae Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 6 May 2025 12:00:33 +0200 Subject: Rename plugin loader file to config --- fnl/aktersnurra.fnl | 52 ---------------------------------------------------- fnl/config.fnl | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ init.lua | 2 +- 3 files changed, 53 insertions(+), 53 deletions(-) delete mode 100644 fnl/aktersnurra.fnl create mode 100644 fnl/config.fnl diff --git a/fnl/aktersnurra.fnl b/fnl/aktersnurra.fnl deleted file mode 100644 index cf50b2f..0000000 --- a/fnl/aktersnurra.fnl +++ /dev/null @@ -1,52 +0,0 @@ -;; Load plugins with lazy. - -(λ load-plugin [tbl name] - (table.insert tbl (require (.. :plugins. name)))) - -(local icons (require :settings.icons)) - -(local {: apply-to-files} (require :util.load)) - -(local opts {:install {:colorscheme [:no-clown-fiesta]} - :debug false - :defaults {:lazy false} - :dev {:path (.. (vim.fn.expand :$HOME) :/projects)} - :performance {:cache {:enabled true} - :rtp {:disabled_plugins [:gzip - :matchit - :netrwPlugin - :tarPlugin - :tohtml - :tutor - :zipPlugin]}} - :ui {:border :single - :backdrop 100 - :icons {:cmd (.. (. icons :cmd) " ") - :config (.. (. icons :cog) " ") - :event (.. (. icons :lightning) " ") - :ft (.. (. icons :document) " ") - :init (.. (. icons :cog) " ") - :import (.. (. icons :import) " ") - :keys (.. (. icons :keyboard) " ") - :lazy (.. (. icons :sleep) " ") - :loaded (.. (. icons :orb-filled) " ") - :not_loaded (.. (. icons :orb) " ") - :plugin (.. (. icons :package) " ") - :runtime (.. (. icons :vim) " ") - :source (.. (. icons :code) " ") - :start (.. (. icons :play) " ") - :task (.. (. icons :checkmark) " ") - :list [(.. (. icons :orb-filled) " ") - (.. (. icons :arrow-right) " ") - (.. (. icons :star) " ") - (.. (. icons :line) " ")]}}}) - -(λ init [] - (require :settings) - (let [lazy (require :lazy) - plugins {}] - (apply-to-files :/fnl/plugins (partial load-plugin plugins)) - (vim.keymap.set :n :y "Lazy home" {:desc :Home}) - (lazy.setup plugins opts))) - -(init) diff --git a/fnl/config.fnl b/fnl/config.fnl new file mode 100644 index 0000000..cf50b2f --- /dev/null +++ b/fnl/config.fnl @@ -0,0 +1,52 @@ +;; Load plugins with lazy. + +(λ load-plugin [tbl name] + (table.insert tbl (require (.. :plugins. name)))) + +(local icons (require :settings.icons)) + +(local {: apply-to-files} (require :util.load)) + +(local opts {:install {:colorscheme [:no-clown-fiesta]} + :debug false + :defaults {:lazy false} + :dev {:path (.. (vim.fn.expand :$HOME) :/projects)} + :performance {:cache {:enabled true} + :rtp {:disabled_plugins [:gzip + :matchit + :netrwPlugin + :tarPlugin + :tohtml + :tutor + :zipPlugin]}} + :ui {:border :single + :backdrop 100 + :icons {:cmd (.. (. icons :cmd) " ") + :config (.. (. icons :cog) " ") + :event (.. (. icons :lightning) " ") + :ft (.. (. icons :document) " ") + :init (.. (. icons :cog) " ") + :import (.. (. icons :import) " ") + :keys (.. (. icons :keyboard) " ") + :lazy (.. (. icons :sleep) " ") + :loaded (.. (. icons :orb-filled) " ") + :not_loaded (.. (. icons :orb) " ") + :plugin (.. (. icons :package) " ") + :runtime (.. (. icons :vim) " ") + :source (.. (. icons :code) " ") + :start (.. (. icons :play) " ") + :task (.. (. icons :checkmark) " ") + :list [(.. (. icons :orb-filled) " ") + (.. (. icons :arrow-right) " ") + (.. (. icons :star) " ") + (.. (. icons :line) " ")]}}}) + +(λ init [] + (require :settings) + (let [lazy (require :lazy) + plugins {}] + (apply-to-files :/fnl/plugins (partial load-plugin plugins)) + (vim.keymap.set :n :y "Lazy home" {:desc :Home}) + (lazy.setup plugins opts))) + +(init) diff --git a/init.lua b/init.lua index 89887cd..d0feee5 100644 --- a/init.lua +++ b/init.lua @@ -26,4 +26,4 @@ require("hotpot").setup { }, }, } -require "aktersnurra" +require "config" -- cgit v1.2.3-70-g09d2