diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-12-21 00:38:05 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-12-21 00:38:05 +0100 |
commit | ff83f6d332c93c6f5124dfd7ba08bcebab2099e3 (patch) | |
tree | 13fdb3e7036a5df414a453d0840d1a6689f603d0 /fnl/config | |
parent | 3a04ae4dff27c859f223885109ae7dfa581d56cc (diff) |
Replace packer with lazy
Diffstat (limited to 'fnl/config')
-rw-r--r-- | fnl/config/autocmd.fnl | 4 | ||||
-rw-r--r-- | fnl/config/packer.fnl | 7 | ||||
-rw-r--r-- | fnl/config/which-key.fnl | 25 |
3 files changed, 16 insertions, 20 deletions
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 ["<cmd>Telescope git_branches theme=dropdown<cr>" "Checkout branch"] :c ["<cmd>Telescope colorscheme theme=dropdown<cr>" :Colorscheme] - :f ["<cmd>Telescope find_files theme=dropdown<cr>" - "Find files"] + :f ["<cmd>Telescope find_files theme=dropdown<cr>" "Find files"] :t ["<cmd>Telescope live_grep theme=dropdown<cr>" "Find text"] :s [:<cmd>SearchSession<cr> "Find Session"] :S ["<cmd>Telescope grep_string theme=dropdown<cr>" "Find String"] @@ -112,12 +111,16 @@ :S ["<cmd>Telescope lsp_dynamic_workspace_symbols<cr>" "Workspace Symbols"]}) -(def- packer {:name :Packer - :c [:<cmd>PackerCompile<cr> :Compile] - :i [:<cmd>PackerInstall<cr> :Install] - :s [:<cmd>PackerSync<cr> :Sync] - :S [:<cmd>PackerStatus<cr> :Status] - :u [:<cmd>PackerUpdate<cr> :Update]}) +(def- lazy {:name :Lazy + :C ["<cmd>Lazy check<cr>" :Check] + :c ["<cmd>Lazy clean<cr>" :Clean] + :d ["<cmd>Lazy debug<cr>" :Debug] + :h ["<cmd>Lazy home<cr>" :Home] + :i ["<cmd>Lazy install<cr>" :Install] + :l ["<cmd>Lazy log<cr>" :Log] + :p ["<cmd>Lazy profile<cr>" :Profile] + :s ["<cmd>Lazy sync<cr>" :Sync] + :u ["<cmd>Lazy update<cr>" :Update]}) (def- replace {:name :Replace :r [:<cmd>Replace<cr> :Replace] @@ -135,6 +138,7 @@ (def- nmappings {:a ["<cmd>Telescope lsp_document_symbols theme=dropdown<cr>" "Document Symbols"] + :T treesitter :c [:<cmd>Bdelete!<CR> "Close Buffer"] :d diagnostics :f find @@ -142,12 +146,11 @@ :h [:<cmd>ColorizerToggle<cr> :Colorizer] :l lsp :n [:<cmd>CommentNormal<CR> :Comment] - :p packer :r replace - :u [:<cmd>UndotreeToggle<cr> :Undotree] :s [switch-window "Switch window"] :t [:<cmd>ToggleTerm<cr> :Terminal] - :T treesitter + :u [:<cmd>UndotreeToggle<cr> :Undotree] + :y lazy :z [:<cmd>ZenMode<cr> "Zen Mode"]}) (def- vopts {:mode :v |