From ff83f6d332c93c6f5124dfd7ba08bcebab2099e3 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 21 Dec 2022 00:38:05 +0100 Subject: Replace packer with lazy --- fnl/config/autocmd.fnl | 4 ++-- fnl/config/packer.fnl | 7 ------- fnl/config/which-key.fnl | 25 ++++++++++++++----------- 3 files changed, 16 insertions(+), 20 deletions(-) delete mode 100644 fnl/config/packer.fnl (limited to 'fnl/config') diff --git a/fnl/config/autocmd.fnl b/fnl/config/autocmd.fnl index b76d68e..63b8474 100644 --- a/fnl/config/autocmd.fnl +++ b/fnl/config/autocmd.fnl @@ -2,7 +2,7 @@ (module config.autocmd {autoload {nvim aniseed.nvim env aniseed.env a aniseed.core - : packer}}) + : lazy}}) (defn create-autocmd [event opts] (nvim.create_autocmd event opts)) @@ -49,7 +49,7 @@ {:pattern :plugins.fnl :callback (lambda [] (env.init nvim.g.aniseed#env) - (packer.sync))}) + (lazy.sync))}) (create-autocmd :FileType {:pattern :netrw diff --git a/fnl/config/packer.fnl b/fnl/config/packer.fnl deleted file mode 100644 index f4f44cc..0000000 --- a/fnl/config/packer.fnl +++ /dev/null @@ -1,7 +0,0 @@ -;; Load packer config -(module config.packer {autoload {util config.util}}) - -(let [packer (util.prequire :packer) - packer-util (require :packer.util)] - (packer.init {:display {:open_fn (fn [] - (packer-util.float {:border :rounded}))}})) diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl index a3b4469..ce5a9cc 100644 --- a/fnl/config/which-key.fnl +++ b/fnl/config/which-key.fnl @@ -64,8 +64,7 @@ :b ["Telescope git_branches theme=dropdown" "Checkout branch"] :c ["Telescope colorscheme theme=dropdown" :Colorscheme] - :f ["Telescope find_files theme=dropdown" - "Find files"] + :f ["Telescope find_files theme=dropdown" "Find files"] :t ["Telescope live_grep theme=dropdown" "Find text"] :s [:SearchSession "Find Session"] :S ["Telescope grep_string theme=dropdown" "Find String"] @@ -112,12 +111,16 @@ :S ["Telescope lsp_dynamic_workspace_symbols" "Workspace Symbols"]}) -(def- packer {:name :Packer - :c [:PackerCompile :Compile] - :i [:PackerInstall :Install] - :s [:PackerSync :Sync] - :S [:PackerStatus :Status] - :u [:PackerUpdate :Update]}) +(def- lazy {:name :Lazy + :C ["Lazy check" :Check] + :c ["Lazy clean" :Clean] + :d ["Lazy debug" :Debug] + :h ["Lazy home" :Home] + :i ["Lazy install" :Install] + :l ["Lazy log" :Log] + :p ["Lazy profile" :Profile] + :s ["Lazy sync" :Sync] + :u ["Lazy update" :Update]}) (def- replace {:name :Replace :r [:Replace :Replace] @@ -135,6 +138,7 @@ (def- nmappings {:a ["Telescope lsp_document_symbols theme=dropdown" "Document Symbols"] + :T treesitter :c [:Bdelete! "Close Buffer"] :d diagnostics :f find @@ -142,12 +146,11 @@ :h [:ColorizerToggle :Colorizer] :l lsp :n [:CommentNormal :Comment] - :p packer :r replace - :u [:UndotreeToggle :Undotree] :s [switch-window "Switch window"] :t [:ToggleTerm :Terminal] - :T treesitter + :u [:UndotreeToggle :Undotree] + :y lazy :z [:ZenMode "Zen Mode"]}) (def- vopts {:mode :v -- cgit v1.2.3-70-g09d2