[NeoVim] Actually working bootstrap
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
(import-macros {: setup} :macros)
|
||||
|
||||
(g! :neo_tree_remove_legacy_commands 1)
|
||||
|
||||
(setup :neo-tree {
|
||||
:close_if_last_window true
|
||||
:window {:width 30
|
||||
@@ -31,6 +32,13 @@
|
||||
[:modified]
|
||||
[:diagnostics]
|
||||
[:git_status]]}})
|
||||
|
||||
(map! [n] :f ":Neotree focus<CR>")
|
||||
(map! [n] :F (fn [] (exec [[:Neotree "toggle"] [:Neotree "toggle" "action=show"]])))
|
||||
|
||||
(augroup! :neo-tree [[FileType] [qf] "set nobuflisted|call feedkeys(\"F\")"])
|
||||
|
||||
; 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)))
|
||||
|
||||
Reference in New Issue
Block a user