[NeoVim] Updates

This commit is contained in:
2022-09-08 18:42:49 +02:00
committed by Pierre Jeanjean
parent efcc99d06d
commit 257f0d724f
5 changed files with 21 additions and 7 deletions

View File

@@ -2,10 +2,19 @@
(import-macros {: setup} :macros)
(setup :aerial
{:close_behavior "global"
{:backends [:lsp :treesitter]
:layout {:width 30
:placement "edge"}
:attach_mode "global"
:close_automatic_events [:unsupported]
:open_automatic true
:placement_editor_edge true
:width 30
:ignore {:filetypes [""
"neo-tree"
"aerial"
"packer"
"qf"
"help"
"DiffviewFileHistory"]}
:on_attach (fn [bufnr]
(map! [n :buffer] :t (fn []
(vim.tbl_map (fn [buf]

View File

@@ -73,5 +73,5 @@
; Startup
(if (or (= (vim.fn.expand "%") "") (not= (vim.fn.isdirectory (vim.fn.expand "%")) 0))
((. (require :neo-tree.command) :_command) (vim.fn.getcwd))
((. (require :neo-tree.command) :_command) :show (vim.fn.getcwd)))
((. (require :neo-tree.command) :execute) {:action "focus" :dir (vim.fn.getcwd)})
((. (require :neo-tree.command) :execute) {:action "show" :dir (vim.fn.getcwd)}))