summaryrefslogtreecommitdiff
path: root/fnl/core
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-05 01:50:20 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-01-05 01:50:20 +0100
commit2a94573f54c69a9af7536586ab2c03eb88bda5e7 (patch)
tree48e430773d56baef8c751fb8a6b4d76303b61636 /fnl/core
parent16198ca3bcd0ddd61f8d18280769c6f226b2b7ce (diff)
Refactor
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))