summaryrefslogtreecommitdiff
path: root/fnl/core
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/core')
-rw-r--r--fnl/core/init.fnl41
1 files changed, 41 insertions, 0 deletions
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 :<leader>y "<cmd>Lazy home<cr>" {:desc :Home})
+ (lazy.setup {:spec [{:import :plugins}
+ {:import :plugins.lsp.lspconfig}
+ {:import :plugins.lsp.mason}]} opts))