|
|
@ -31,7 +31,16 @@ if not config_status_ok then
|
|
|
|
return
|
|
|
|
return
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Replaces auto_close
|
|
|
|
local tree_cb = nvim_tree_config.nvim_tree_callback
|
|
|
|
local tree_cb = nvim_tree_config.nvim_tree_callback
|
|
|
|
|
|
|
|
vim.api.nvim_create_autocmd("BufEnter", {
|
|
|
|
|
|
|
|
nested = true,
|
|
|
|
|
|
|
|
callback = function()
|
|
|
|
|
|
|
|
if #vim.api.nvim_list_wins() == 1 and vim.api.nvim_buf_get_name(0):match("NvimTree_") ~= nil then
|
|
|
|
|
|
|
|
vim.cmd "quit"
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
nvim_tree.setup {
|
|
|
|
nvim_tree.setup {
|
|
|
|
disable_netrw = true,
|
|
|
|
disable_netrw = true,
|
|
|
@ -42,14 +51,9 @@ nvim_tree.setup {
|
|
|
|
"dashboard",
|
|
|
|
"dashboard",
|
|
|
|
"alpha",
|
|
|
|
"alpha",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
auto_close = true,
|
|
|
|
|
|
|
|
open_on_tab = false,
|
|
|
|
open_on_tab = false,
|
|
|
|
hijack_cursor = false,
|
|
|
|
hijack_cursor = false,
|
|
|
|
update_cwd = true,
|
|
|
|
update_cwd = true,
|
|
|
|
update_to_buf_dir = {
|
|
|
|
|
|
|
|
enable = true,
|
|
|
|
|
|
|
|
auto_open = true,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
diagnostics = {
|
|
|
|
diagnostics = {
|
|
|
|
enable = true,
|
|
|
|
enable = true,
|
|
|
|
icons = {
|
|
|
|
icons = {
|
|
|
@ -82,7 +86,6 @@ nvim_tree.setup {
|
|
|
|
height = 30,
|
|
|
|
height = 30,
|
|
|
|
hide_root_folder = false,
|
|
|
|
hide_root_folder = false,
|
|
|
|
side = "left",
|
|
|
|
side = "left",
|
|
|
|
auto_resize = true,
|
|
|
|
|
|
|
|
mappings = {
|
|
|
|
mappings = {
|
|
|
|
custom_only = false,
|
|
|
|
custom_only = false,
|
|
|
|
list = {
|
|
|
|
list = {
|
|
|
@ -98,15 +101,23 @@ nvim_tree.setup {
|
|
|
|
cmd = "trash",
|
|
|
|
cmd = "trash",
|
|
|
|
require_confirm = true,
|
|
|
|
require_confirm = true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
quit_on_open = 0,
|
|
|
|
actions = {
|
|
|
|
git_hl = 1,
|
|
|
|
open_file = {
|
|
|
|
disable_window_picker = 0,
|
|
|
|
quit_on_open = true,
|
|
|
|
root_folder_modifier = ":t",
|
|
|
|
window_picker = {
|
|
|
|
show_icons = {
|
|
|
|
enable = false,
|
|
|
|
git = 1,
|
|
|
|
},
|
|
|
|
folders = 1,
|
|
|
|
},
|
|
|
|
files = 1,
|
|
|
|
|
|
|
|
folder_arrows = 1,
|
|
|
|
|
|
|
|
tree_width = 30,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- unknown options as of 22.05
|
|
|
|
|
|
|
|
--
|
|
|
|
|
|
|
|
-- update_to_buf_dir = {
|
|
|
|
|
|
|
|
-- enable = true,
|
|
|
|
|
|
|
|
-- auto_open = true,
|
|
|
|
|
|
|
|
-- },
|
|
|
|
|
|
|
|
-- auto_resize = true,
|
|
|
|
|
|
|
|
-- git_hl = 1,
|
|
|
|
|
|
|
|
-- root_folder_modifier = ":t",
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|