26 lines
1.1 KiB
Fennel
26 lines
1.1 KiB
Fennel
(import-macros {: map!} :hibiscus.vim)
|
|
(import-macros {: setup} :macros)
|
|
|
|
(setup :aerial
|
|
{:backends [:lsp :treesitter]
|
|
:layout {:width 30
|
|
:placement "edge"}
|
|
:attach_mode "global"
|
|
:close_automatic_events [:unsupported]
|
|
:open_automatic true
|
|
:ignore {:filetypes [""
|
|
"neo-tree"
|
|
"aerial"
|
|
"packer"
|
|
"qf"
|
|
"help"
|
|
"DiffviewFileHistory"]}
|
|
:on_attach (fn [bufnr]
|
|
(map! [n :buffer] :t (fn []
|
|
(vim.tbl_map (fn [buf]
|
|
(if (= (vim.api.nvim_buf_get_option buf "filetype") "aerial")
|
|
(vim.tbl_map (fn [win]
|
|
(vim.api.nvim_set_current_win win))
|
|
(vim.fn.win_findbuf buf))))
|
|
(vim.api.nvim_list_bufs)))))})
|