From b48f524aefc847f74bc41e150546a26934ff3e8a Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Wed, 6 Jul 2022 12:38:56 +0200 Subject: Add aerial plugin --- fnl/config/aerial.fnl | 5 +++++ fnl/config/init.fnl | 3 ++- fnl/config/which-key.fnl | 7 +++++-- fnl/plugins.fnl | 1 + 4 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 fnl/config/aerial.fnl diff --git a/fnl/config/aerial.fnl b/fnl/config/aerial.fnl new file mode 100644 index 0000000..6b74762 --- /dev/null +++ b/fnl/config/aerial.fnl @@ -0,0 +1,5 @@ +;; Skimming code. +(module config.aerial {autoload {util util}}) + +(let [aerial (util.load-plugin :aerial)] + (aerial.setup {})) diff --git a/fnl/config/init.fnl b/fnl/config/init.fnl index a3a81d6..cc27653 100644 --- a/fnl/config/init.fnl +++ b/fnl/config/init.fnl @@ -1,5 +1,6 @@ ;; Load all plugin configs. -(module config.init {require [config.autocmd +(module config.init {require [config.aerial +config.autocmd config.alpha config.autopairs config.better-escape diff --git a/fnl/config/which-key.fnl b/fnl/config/which-key.fnl index 6eb50bc..a6f690c 100644 --- a/fnl/config/which-key.fnl +++ b/fnl/config/which-key.fnl @@ -38,7 +38,10 @@ (def- mappings {:k ["lua require('Comment.api').toggle_current_linewise()" :Comment] - :a [:Alpha :Alpha] + :A [:Alpha :Alpha] + :a {:name :Aerial + :a [:AerialToggle! "Toggle Aerial"] + :c [:AerialClose "Close Aerial"]} :b ["lua require('telescope.builtin').buffers(require('telescope.themes').get_dropdown{previewer = false})" :Buffers] :e [:NvimTreeToggle :Explorer] @@ -73,7 +76,7 @@ :b ["Telescope git_branches" "Checkout branch"] :c ["Telescope git_commits" "Checkout commit"] :d ["Gitsigns diffthis HEAD" :Diff] - :n ["Neogit" :Neogit]} + :n [:Neogit :Neogit]} :l {:name :LSP :a ["lua vim.lsp.buf.code_action()" "Code Action"] :d ["Telescope lsp_document_diagnostics" diff --git a/fnl/plugins.fnl b/fnl/plugins.fnl index 87a4a5d..751e128 100644 --- a/fnl/plugins.fnl +++ b/fnl/plugins.fnl @@ -66,5 +66,6 @@ :lewis6991/spellsitter.nvim {} :tamago324/lir.nvim {} :j-hui/fidget.nvim {} + :stevearc/aerial.nvim {} :TimUntersberger/neogit {:requires :nvim-lua/plenary.nvim} :s1n7ax/nvim-window-picker {}}) -- cgit v1.2.3-70-g09d2