summaryrefslogtreecommitdiff
path: root/fnl/config
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-07-06 12:38:56 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-07-06 12:38:56 +0200
commitb48f524aefc847f74bc41e150546a26934ff3e8a (patch)
tree8725c8595e1140febf30e65ca3ae738864177dc6 /fnl/config
parent8e35dfc6dc34a09d0e44fb2f5cc061878f817430 (diff)
Add aerial plugin
Diffstat (limited to 'fnl/config')
-rw-r--r--fnl/config/aerial.fnl5
-rw-r--r--fnl/config/init.fnl3
-rw-r--r--fnl/config/which-key.fnl7
3 files changed, 12 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>"