From 2a94573f54c69a9af7536586ab2c03eb88bda5e7 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 5 Jan 2024 01:50:20 +0100 Subject: Refactor --- fnl/core/init.fnl | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 fnl/core/init.fnl (limited to 'fnl/core') diff --git a/fnl/core/init.fnl b/fnl/core/init.fnl new file mode 100644 index 0000000..df07743 --- /dev/null +++ b/fnl/core/init.fnl @@ -0,0 +1,41 @@ +;; Load plugins with lazy. + +(local icons (require :icons)) + +(local opts {:install {:colorscheme [:no-clown-fiesta]} + :debug false + :defaults {:lazy false} + :performance {:cache {:enabled true} + :rtp {:disabled_plugins [:gzip + :matchit + :netrwPlugin + :tarPlugin + :tohtml + :tutor + :zipPlugin]}} + :ui {:border :single + :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 :filled-orb) " ") + :not_loaded (.. (. icons :orb) " ") + :plugin (.. (. icons :package) " ") + :runtime (.. (. icons :vim) " ") + :source (.. (. icons :code) " ") + :start (.. (. icons :play) " ") + :task (.. (. icons :checkmark) " ") + :list [(.. (. icons :filled-orb) " ") + (.. (. icons :right-arrow) " ") + (.. (. icons :star) " ") + (.. (. icons :line) " ")]}}}) + +(let [lazy (require :lazy)] + (vim.keymap.set :n :y "Lazy home" {:desc :Home}) + (lazy.setup {:spec [{:import :plugins} + {:import :plugins.lsp.lspconfig} + {:import :plugins.lsp.mason}]} opts)) -- cgit v1.2.3-70-g09d2