summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fnl/config/aerial.fnl5
-rw-r--r--fnl/config/init.fnl3
-rw-r--r--fnl/config/which-key.fnl7
-rw-r--r--fnl/plugins.fnl1
4 files changed, 13 insertions, 3 deletions
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 ["<cmd>lua require('Comment.api').toggle_current_linewise()<CR>"
:Comment]
- :a [:<cmd>Alpha<cr> :Alpha]
+ :A [:<cmd>Alpha<cr> :Alpha]
+ :a {:name :Aerial
+ :a [:<cmd>AerialToggle!<CR> "Toggle Aerial"]
+ :c [:<cmd>AerialClose<CR> "Close Aerial"]}
:b ["<cmd>lua require('telescope.builtin').buffers(require('telescope.themes').get_dropdown{previewer = false})<cr>"
:Buffers]
:e [:<cmd>NvimTreeToggle<cr> :Explorer]
@@ -73,7 +76,7 @@
:b ["<cmd>Telescope git_branches<cr>" "Checkout branch"]
:c ["<cmd>Telescope git_commits<cr>" "Checkout commit"]
:d ["<cmd>Gitsigns diffthis HEAD<cr>" :Diff]
- :n ["<cmd>Neogit<cr>" :Neogit]}
+ :n [:<cmd>Neogit<cr> :Neogit]}
:l {:name :LSP
:a ["<cmd>lua vim.lsp.buf.code_action()<cr>" "Code Action"]
:d ["<cmd>Telescope lsp_document_diagnostics<cr>"
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 {}})